Python IDLE extension to reload the currently opened file from disk contents.
GPL-3.0 License
Python IDLE extension to reload the currently opened file from disk contents.
This IDLE extension allows you to reload the currently open file from disk contents. For example, say you have run an auto-formatter like black on your code, but you still have an IDLE window open. Regularly, you would have to close the window and re-open the file to see the changes. This extension allows you to reload the file's contents from what is saved on disk without restarting IDLE.
pip install idlereload[user]
idleuserextend; idlereload
You should see the following output:
Config should be good! Config should be good!
.
Options
-> Configure IDLE
-> Extensions
.ZzDummy
there should be andidlereload
. This is where you can configure howpip install idlereload
idlereload
You will likely see a message saying
idlereload not in system registered extensions!
. Run the command
it tells you to add idlereload to your system's IDLE extension config file.
idlereload
again after modifying the system extensionConfig should be good!
.Options
-> Configure IDLE
-> Extensions
.ZzDummy
there should be andidlereload
. This is where you can configure howMaybe add support for asynchronously checking if we need to reload and display a header message like code context that disk version has changed.