-
Notifications
You must be signed in to change notification settings - Fork 15
iPython tricks
Vince Buffalo edited this page Aug 27, 2017
·
4 revisions
Note: these notes are deprecated, as the iPython notebook → Jupyter notebook
See the Jupyter devwiki page.
First, many important hacks have been incorporated in my ipython default profile configuration, available in my dotfiles repository.
Even with a notebook, sometimes you need scratch paper:
%qtconsole
opens up a ipython qtconsole running the same kernel.
Change the configuration:
%config InlineBackend.figure_format='retina'
or add this to your ipython configuration.
There appears to be an issue with classes that use __slots__
and xreload
, which I believe is used by iPython. Here's a quick note here. My error:
*** TypeError: descriptor 'segments' for 'Individual' objects doesn't apply to 'Individual' objec
Commenting out __slots__
solves this issue, but is rather annoying. See also http://svn.python.org/projects/sandbox/trunk/xreload/xreload.py