Skip to content

Code autoreload support #65

@mandx

Description

@mandx

Code autoreload support: Basically what Django's runserver does:

  • Watch for code changes (using pyinotify if available, otherwise just keep polling for changes)
  • Reloads the webserver process.

Is this possible right now? If not, any plans of implementing this?

In my particular case, my workflow is usually:

  • Launch ptpython
  • Import some modules
  • Instantiate some classes from those modules
  • Run the methods I want to test of those classes / Run the functions I want to test (from the imported modules)
  • Something doesn't work as expected: Go back to the editor, make some changes. This is when ptpython picks up the changes, and then it would have to re-run this session's history.
  • Go back to ptpython's terminal, hit the Up key to re-select the previous line, Enter to execute it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions