Socket
Socket
Sign inDemoInstall

idlereload

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    idlereload

Python IDLE extension to reload the currently opened file from disk contents


Maintainers
1

Readme

IdleReload

Python IDLE extension to reload the currently opened file from disk contents.

Tests

pre-commit code style: black Ruff

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.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc