Can I load magic at the very beginning of jupyter console (notebook)?

56 views
Skip to first unread message

Wen Ling

unread,
Feb 25, 2017, 9:03:27 PM2/25/17
to Project Jupyter
Hi,
     every time I run jupyter console, I always need to %load_ext autoreload and %autoreload 2, %matplotlib osx. Is there a way I can load them at very beginning of console session automatically? either by configuration file or by shell command.
Thanks

wen

MinRK

unread,
Feb 26, 2017, 3:21:30 PM2/26/17
to Project Jupyter

If you put these lines in ~/.ipython/profile_default/startup/mymagics.ipy, they will execute every time you start IPython (including jupyter console).

-Min


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/a1962505-2440-4fed-af35-98af2aea7fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wen Ling

unread,
Feb 28, 2017, 12:27:58 AM2/28/17
to jup...@googlegroups.com
Thanks. It works perfectly.

Wen@VioletPhone
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/1TDQHzD-Omw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages