Почему нет edit with idle

от admin

"Edit with IDLE" option missing from context menu

Here’s a reg file to add the command to edit with IDLE for Python.File (.py) and Python.NoConFile (.pyw) file types. It’s for Python 2.7, installed in C:\Python27, so substitute the paths to pythonw.exe and idle.pyw that are relevant to your installation. Save it to a .reg file. Then right-click and choose Merge.

Most of the time when this problem occurs, people will read answers directing them into the windows registry, often unnecessarily.

In the majority of cases, the registry key

will already exist and have the correct value, but it will only be used by Windows shell context menu if .py files are set by default to open with python.exe.

This is the first thing to check, and solves the problem in the majority of cases:

  • right click on a .py file
  • open with.
  • choose default program.
  • tick always use the selected program to open this kind of file
  • choose python.exe

This runs the script in a terminal, but also sets the filetype back to python.

Now check the right click menu again.

As a newer update, for people that are having the «missing idle» issue with Windows 10 using Python 3.6 (64-bit).

From my experience, this happens when you install other python editors, and you change your default app to open with that editor.

Опция «Редактировать с IDLE» отсутствует в контекстном меню

У меня есть Python 2.7.5, который установлен с ArcGIS 10.2.2. Когда я впервые щелкнул правой кнопкой мыши на сценарии .py, который я ранее написал, в контекстном меню была указана опция «Редактировать с IDLE». Однако эта опция больше не появляется, когда я щелкаю правой кнопкой мыши по файлу .py.

Я прочитал многочисленные темы, касающиеся этой проблемы, и пытался некоторые из них, такие как изменение / удаление разделов реестра, а затем переустановка / восстановление программного обеспечения. На данный момент я не заинтересован в использовании IDE, хотя многие будут рады узнать, что я собираюсь использовать IDE позже. Прямо сейчас цель состоит в том, чтобы исправить проблему, а не избегать ее и обходить ее.

Я ценю помощь, которую я получил от интернет-сообщества в прошлом, и я уверен, что кто-то найдет решение для меня.

Как мне вернуть «Edit with IDLE» обратно в контекстное меню?

11 ответов

Вот reg-файл для добавления команды редактирования с IDLE для типов файлов Python.File (.py) и Python.NoConFile (.pyw). Это для Python 2.7, установленного в C: \ Python27, поэтому замените пути к pythonw.exe и idle.pyw, которые имеют отношение к вашей установке. Сохраните его в файл .reg. Затем щелкните правой кнопкой мыши и выберите «Объединить».

Добавив немного больше деталей к ответу Теодорико Левоффа для тех, кому нужно немного больше объяснений, таких как я.

Откройте текстовый редактор, например Блокнот, и скопируйте / вставьте следующее, но обязательно измените пути к pythonw.exe и idle.pyw, чтобы они совпадали с путями в вашей собственной системе:

Сохраните этот текстовый файл как idle.reg в папке Python27, так что теперь у вас есть файл, похожий на этот (конечно, с вашим собственным путем к файлу):

Щелкните правой кнопкой мыши файл idle.reg и в контекстном меню выберите команду «Объединить». Может появиться пара инструкций или уведомлений, которые требуют Да или Продолжить, которые я выбрал. В конце концов, мои .py файлы дают мне возможность снова «Редактировать в IDLE».

Я надеюсь, что эти объяснения полезны. Большое спасибо тем, кто решил эту проблему раньше и поделился там решениями.

Эта проблема возникает из-за проблемы в реестре установки Python. В то время как можно отредактировать реестр и решить проблему, простое решение для этого может быть:

УДАЛИТЬ ВСЕ РЕГИСТРЫ , относящиеся к расширениям py и

Переустановите Python и дайте установке пройти свой курс действий.

Проблема обязательно решится.

В большинстве случаев, когда возникает эта проблема, люди будут читать ответы, направляя их в реестр Windows, часто без необходимости.

В большинстве случаев ключ реестра

Будет уже существовать и будет иметь правильное значение, но оно будет использоваться контекстным меню оболочки Windows только в том случае, если для файлов .py по умолчанию установлено открытие с помощью python.exe.

Это первое, что нужно проверить, и решает проблему в большинстве случаев:

  • щелкните правой кнопкой мыши на файле .py
  • открыть с.
  • выбрать программу по умолчанию .
  • Отметьте всегда использовать выбранную программу, чтобы открыть этот тип файла
  • выберите python.exe

Это запускает скрипт в терминале, но также устанавливает тип файла обратно в python.

Теперь проверьте меню правого клика еще раз.

Другой вариант — просто открыть файл в режиме ожидания, выбрав open с помощью:

В качестве программы по умолчанию.

В качестве более нового обновления для людей, у которых возникла проблема «отсутствующего простоя» в Windows 10 с использованием Python 3.6 (64-разрядная версия).

По моему опыту, это происходит, когда вы устанавливаете другие редакторы Python и изменяете приложение по умолчанию, чтобы оно открывалось в этом редакторе.

Самый простой способ решить эту проблему — нажать кнопку «Пуск», а затем перейти к настройкам -> Система -> Стандартные приложения -> «Выбор стандартных приложений по типу файла». Прокрутите вниз, пока не найдете тип файла «.py», щелкните значок и выберите «Python» (на значке изображен небольшой ракетный корабль). Это изменит ваше приложение по умолчанию обратно на «Python.exe», и контекстное меню «редактировать с простоя» снова появится в ваших «.py» файлах.

Надеюсь это поможет!

Я получил «Edit with IDLE» обратно с опцией «Repair» в меню деинсталляции.

Нажав кнопку «Сохранить», чтобы сохранить ваш код Python, вы увидите Two Extensions . 1) .py и 2) .pyw .

Так что для Python 2 вы должны сохранить программу на Python, используя расширение .pyw .

После удаления обоих 2.7 и 3.6 , переустановки 3.6 я запустил init .py, main .py и остановился. найден pyw в C:\Program Files\python\Lib\idlelib , и редактирование с меню появилось снова

Я думаю, что большинство случаев вызвано загрузчиком Py, который поставляется с Python 3. Когда вы устанавливаете Python 3 вместе с Python 2.x, файлы * .py и * .pyw связаны для запуска с новым средством запуска Py. Поскольку файлы * .py и * .pyw больше не связаны с Python.exe, это нарушает параметры «Редактировать с IDLE» и аналогичные параметры контекстного меню, несмотря на наличие и корректность всех соответствующих записей реестра.

Если щелкнуть правой кнопкой мыши файл и выбрать Python.exe и выбрать «всегда использовать выбранную программу для открытия файлов такого типа», проблема устраняется (даже если кажется, что Python.exe уже установлен в качестве программы по умолчанию), но затем вы теряете Py функциональность лаунчера. Это вполне можно считать ошибкой в установщике Python 3.x, и я думаю, что разработчики Python должны исправить это на этом уровне.

Между тем, я уверен, что мастера реестра могут найти обходной путь для этого, но, к сожалению, в данный момент это не для меня.

Однако это работает только частично. Когда я щелкаю правой кнопкой мыши по файлу .py, «Edit with IDLE» не появляется. Выбор «Редактировать» открывает файл с IDLE. Кроме того, значок python не связан с файлами .py. Я решил связать его с Блокнотом, а затем связать снова с Python. Это работает волшебство. Значок вернулся, как и опция «Редактировать с IDLE». Надеюсь, это поможет.

Edit with IDLE missing using Windows 10

I don’t know where your context menu items went but you can fix them by following the steps here “Edit with IDLE” option missing from context menu Only do that if you’re comfortable messing around with the registry though.

Читать:
Как скопировать картинку из figma

I do not have a Windows computer to try this on, but your other option is to re-install Python and look for an option to install the context menu/shell extensions. It’s probably in there, just off by default.

The problem most likely stems from overwriting the Python.File filetyp with a user choice on how to open a file. I could fix it on my system using the registry editor of Windows (Win+R, then enter regedit and press enter) as follows:

  1. Delete all user choice entries for .py and .pyw in the registry for example there is most likely an entry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py\UserChoice
  2. Correct/extend these two entries as follows

and for .pyw files:

Then you should get a working option «Edit with IDLE» whenever you right-click on .py or a .pyw file in the file explorer. Double-clicking or opening the file involves the python launcher and directly starts the program.

"Edit with IDLE" option missing from context menu

I have Python 2.7.5 that installed with ArcGIS 10.2.2. When I first right-clicked a .py script I’d previously written it listed the «Edit with IDLE» option in the context menu. However, this option no longer appears when I right-click a .py file.

I have read numerous threads concerning this issue and attempted some of them, such as modifying/removing registry keys and then reinstalling/repairing the software. I am not interested in using an IDE at this point, though many will be happy to know I intend to use an IDE later on. Right now, the purpose is to fix the problem rather than avoid and work around it.

I appreciate the help I’ve gotten from the online community in the past, and I’m confident someone will come through with a solution for me.

How do I get «Edit with IDLE» back in the context menu?

12 Answers 12

Most of the time when this problem occurs, people will read answers directing them into the windows registry, often unnecessarily.

In the majority of cases, the registry key

will already exist and have the correct value, but it will only be used by Windows shell context menu if .py files are set by default to open with python.exe.

This is the first thing to check, and solves the problem in the majority of cases:

  • right click on a .py file
  • open with.
  • choose default program.
  • tick always use the selected program to open this kind of file
  • choose python.exe

This runs the script in a terminal, but also sets the filetype back to python.

Now check the right click menu again.

As a newer update, for people that are having the «missing idle» issue with Windows 10 using Python 3.6 (64-bit).

From my experience, this happens when you install other python editors, and you change your default app to open with that editor.

The easiest way to fix this issue is to click the «start» button, then navigate to settings —> System —> Default Apps —> «Choose default apps by file type». Scroll down till you find «.py» file type and click on the icon and choose «Python»(has a little rocket ship in the icon). This will change your default app back to «Python.exe», and the context menu «edit with idle» will appear once again on your «.py» files.

Hope this helps!

Here’s a reg file to add the command to edit with IDLE for Python.File (.py) and Python.NoConFile (.pyw) file types. It’s for Python 2.7, installed in C:\Python27, so substitute the paths to pythonw.exe and idle.pyw that are relevant to your installation. Save it to a .reg file. Then right-click and choose Merge.

Liam's user avatar

Another option would be to just open the file with the idle by choosing open with:

as the default program.

I got the «Edit with IDLE» back with the option «Repair» of the deinstallation-menu.

Adding a little more detail to Teodorico Levoff’s answer for those who need a little more explanation, like myself.

Open a text editor, such as Notepad, and copy/paste the following, but be sure to modify the paths to pythonw.exe and idle.pyw so that they match the paths in your own system:

Save this text file as idle.reg in the Python27 folder, so you now have a file that resembles this (with your own file path, of course):

Right-click the idle.reg file, and in the context menu, click Merge. A couple instructions may appear or notices that require a Yes or Continue that I selected. In the end, my .py files give me the option to «Edit in IDLE» again.

I hope these explanations are helpful. Big thank you to those who’ve solved this problem before and shared there solutions.

For opening your file in IDLE mode or in python exe mode u can follow this simple steps. Works for me in my windows 7 system. For IDLE mode:

  1. Select the file and press right mouse
  2. press open with—->choose default program
  3. press browse and go to the folder where your python programm is installed
  4. in python folder search IDLE and select the batch file
  5. press open and your file will be open in IDLE edit mode

For python.exe mode:

  1. In command prompt write "where python"
  2. copy the path from cmd
  3. Select the file and press right mouse
  4. press open with—->choose default program
  5. press browse and go to the selected path
  6. press open and your file will be open in IDLE edit mode

As click to save button to save your python code there will be Two Extensions . 1) .py and 2) .pyw .

So for Python 2 you have to save python program using extension .pyw .

karanrp's user avatar

I think the majority of cases are caused by the Py launcher that comes with Python 3. When you install Python 3 alongside Python 2.x, the *.py and *.pyw files are associated to run with the new Py launcher. Since *.py and *.pyw files are no longer associated with Python.exe, that breaks the «Edit with IDLE» and similar context menu options, despite all relevant registry entries being present and correct.

Right clicking a file and choosing Python.exe and selecting «always use the selected program to open this kind of file» option fixes the problem (even if Python.exe seems to be already set as the default program) but then you lose the Py launcher functionality. This may well be considered a bug with the Python 3.x installer and I think should be fixed at that level by the Python developers.

Meanwhile, I’m sure registry wizards can find a workaround for this but unfortunately, that’s beyond me at the moment.

However, it only works partially. When I right-click on a .py file, no ‘Edit with IDLE’ shows up. Choosing ‘Edit’ opens the file with IDLE. Also, the python icon is not associated with .py files. I decide to associate it with Notepad, then associate it with Python again. That works the magic. The icon is back, and so is the ‘Edit with IDLE’ option. Hope it helps.

Похожие статьи