Skip to main content

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.

CI

pre-commit

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)

  1. Go to terminal and install with the following command:
pip install idlereload[user]
  1. Run configuration update/check commands:
idleuserextend; idlereload

You should see the following output: Config should be good! Config should be good!.

  1. Open IDLE, go to Options -> Configure IDLE -> Extensions. If everything went well, alongside ZzDummy there should be and option called idlereload. This is where you can configure how idlereload works.

Installation (Legacy, needs root permission)

  1. Go to terminal and install with the following command:
pip install idlereload
  1. 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.

  1. Run command idlereload again after modifying the system extension configuration file. This time, you should see the following output: Config should be good!.
  2. Open IDLE, go to Options -> Configure IDLE -> Extensions. If everything went well, alongside ZzDummy there should be and option called idlereload. 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

idlereload-0.1.0.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idlereload-0.1.0-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file idlereload-0.1.0.tar.gz.

File metadata

  • Download URL: idlereload-0.1.0.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for idlereload-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b38d1322db02850d73dc18cab840c9aa71b218f8404c6ac1c725d2f3733377c
MD5 7c0257c324f4ca3d8f8a5d0fccd26690
BLAKE2b-256 6c7554896fdc9f847c99fdb0261d54ae8cad6b637c82cd9b9b56ab70eacad1f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for idlereload-0.1.0.tar.gz:

Publisher: python-publish.yml on CoolCat467/idlereload

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file idlereload-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: idlereload-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for idlereload-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab969b69382d0c834700f792a521d22edb3fe4d945f55cb68e0416c66fed11d1
MD5 ffc8c0896eca87096cf517356771fd9b
BLAKE2b-256 8b5e902beaabb65251fc0b721595266cf8dc82550109dfaaec05f9241dadc996

See more details on using hashes here.

Provenance

The following attestation bundles were made for idlereload-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on CoolCat467/idlereload

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page