Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: %autoreload like functionality for rapid prototyping #44

Open
naefl opened this issue Nov 16, 2020 · 4 comments
Open

Idea: %autoreload like functionality for rapid prototyping #44

naefl opened this issue Nov 16, 2020 · 4 comments

Comments

@naefl
Copy link

naefl commented Nov 16, 2020

Thanks for the fantastic work.

It's very likely that I'm just not good enough in searching issues here/missing the correct keywords so apologies if that's the case in advance.

The one feature that keeps me from switching to xonsh from ipython is the availability of a %autoreload like functionality when using it as a REPL when developing, that recursively imports the modules and its dependencies.

Is there such a function available/in planning?

Thanks!

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@naefl naefl changed the title %autoreload like functionality for rapid prototyping Feature Request: %autoreload like functionality for rapid prototyping Nov 16, 2020
@gforsyth
Copy link
Contributor

Hey @naefl -- thanks for raising this. We don't currently have an autoreload, although it should be possible to grab it from IPython and package it up as a xontrib.

In the interim, you can do

import importlib
importlib.reload(module_name)

for some of that kind of functionality (although not "auto")

@scopatz
Copy link
Member

scopatz commented Nov 18, 2020

PRs welcome! I think this would make a nice built-in xontrib

@naefl
Copy link
Author

naefl commented Nov 19, 2020

Thanks for the pointers @scopatz / @gforsyth I'll have a look at it

@gforsyth
Copy link
Contributor

Awesome! Let us know if you have any questions (and please feel free to open "half-finished" PRs if you need pointers)

@anki-code anki-code changed the title Feature Request: %autoreload like functionality for rapid prototyping %autoreload like functionality for rapid prototyping May 21, 2024
@anki-code anki-code transferred this issue from xonsh/xonsh May 21, 2024
@anki-code anki-code changed the title %autoreload like functionality for rapid prototyping Idea: %autoreload like functionality for rapid prototyping May 21, 2024
@anki-code anki-code reopened this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants