Python IDLE extension to reload the currently opened file from disk contents
Project description
IdleReload
Python IDLE extension to reload the currently opened file from disk contents.
What does this extension do?
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.
Installation (Without root permissions)
- Go to terminal and install with the following command:
pip install idlereload[user]
- Run configuration update/check commands:
idleuserextend; idlereload
You should see the following output:
Config should be good! Config should be good!
.
- Open IDLE, go to
Options
->Configure IDLE
->Extensions
. If everything went well, alongsideZzDummy
there should be and option calledidlereload
. This is where you can configure how idlereload works.
Installation (Legacy, needs root permission)
- Go to terminal and install with the following command:
pip install idlereload
- Run configuration update/check commands:
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.
- Run command
idlereload
again after modifying the system extension configuration file. This time, you should see the following output:Config should be good!
. - Open IDLE, go to
Options
->Configure IDLE
->Extensions
. If everything went well, alongsideZzDummy
there should be and option calledidlereload
. This is where you can configure how idlereload works.
Future Work
Maybe add support for asynchronously checking if we need to reload and display a header message like code context that disk version has changed.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file idlereload-0.0.3.tar.gz
.
File metadata
- Download URL: idlereload-0.0.3.tar.gz
- Upload date:
- Size: 46.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e72c734a12775280bc55709a5d6c39e3eddf4e689b907c786b10526e1eb931e5 |
|
MD5 | 04412a3673a0ed94859f8f7ae4b2bd3c |
|
BLAKE2b-256 | 85379761630aaa5140bade8ef024e595cbf1c07bd0e2422a7ff2e55356be510d |
File details
Details for the file idlereload-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: idlereload-0.0.3-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b3de5eecaa970f7b207a9aac0fdd73647b53d0167ab9a12974f239c15e8dc7 |
|
MD5 | f02a5908bb5124ef4ba9e559fd90b408 |
|
BLAKE2b-256 | 3b51719bcfcf6c57dc2d12f540aa9820ef7b2b832236108a2b908d65705f9f47 |