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

move extensions to Shell from App #1144

Open
minrk opened this issue Dec 12, 2011 · 8 comments
Open

move extensions to Shell from App #1144

minrk opened this issue Dec 12, 2011 · 8 comments
Milestone

Comments

@minrk
Copy link
Member

minrk commented Dec 12, 2011

As proposed in #1073, extensions should be a trait of the InteractiveShell object, not the Application. This should be done with a deprecation, as was done with the prompts.

@sloria
Copy link

sloria commented Feb 8, 2015

+1. I am trying to use IPython.embed to automatically load extensions, and I'm not sure it's currently possible until this issue is addressed.

@Carreau Carreau modified the milestones: 5.0, 4.0 Jun 10, 2015
@Carreau Carreau modified the milestones: wishlist, 5.0 Apr 30, 2016
@horiacristescu
Copy link

I'd like to use autoreload on IPython embed but it doesn't seem to work. Can you provide an example?

@assafmuller
Copy link

I would also like to use autoload with an embedded iPython instance.

@csheaff
Copy link

csheaff commented Aug 3, 2020

Might there be any plans on addressing this? It would be really appreciated and useful - dropping into an Ipython terminal within a function is a really great alternative to Jupyter, and being able to load a startup file or config while doing so would be super convenient.

@Carreau
Copy link
Member

Carreau commented Aug 4, 2020

Might there be any plans on addressing this?

Not explicit time from the core dev, contribution is welcome.

@dzhang-b
Copy link

any plan to address this? If I want to make it work, which files/document should I peek?

@MrMino
Copy link
Member

MrMino commented Jun 29, 2021

@dzhang-b I think this might be a challenge to a newcomer, but I'd start by looking at the mentioned PR, then try to wrap my head around what happens in IPython.core.shellapp, and how the extensions work.

@dzhang-b
Copy link

dzhang-b commented Jun 29, 2021

currently I use the app mode as a work around to load the extension on startup, and for accessing the symbols in interactive shell, I do setattr or delattr on sys.modules['__main__'] to add/remove the symbols in the global namespace.

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

8 participants