Questions tagged [ipython]

IPython is a feature-rich interactive shell for Python, and provides a kernel for frontends such as IPython Notebook and Jupyter Notebook.

IPython provides a rich architecture for interactive computing with . It includes:


Version updates:

The IPython 3.x release series is the last where IPython is released as one big package. Starting with IPython 4.0, the parts which work for any language are called , while the parts specific to executing Python code remain as IPython.

IPython 5.0 is the last major release to support Python 2.x.


Links:

7180 questions
5
votes
2 answers

Jupyter notebook keeps reconnecting to kernel

I get to open the Jupyter console without any problems, but when I create a new notebook it keeps connecting to and disconnecting from the kernel (the messages "Connecting to Kernel" / "Connected" keep showing in the upper right corner). This is…
Parzival
  • 2,004
  • 4
  • 33
  • 47
5
votes
0 answers

How to prevent code execution in ipython when autoreload fails?

In ipython, I have turned on autoreload in my configuration file. Normally this picks up any changes in my code and ipython will execute the newly compiled version. However, if there is a syntax error in the code, I get the old version instead. …
mfardal
  • 176
  • 4
5
votes
4 answers

Installing IPython to work with a non-default python version (i.e python2.6.6/python2.7) on OSX Snow Leopard

OK guys this is tricky, and I haven't even found a suitable solution on the IPython website. I'm working on OSX Snow Leopard. I've installed IPython using easy-install, plus all the additional basic add-ons: $ sudo easy-install readline pexpect nose…
Ory Band
  • 14,716
  • 14
  • 59
  • 66
5
votes
1 answer

installing Jupyter on server without internet access

I need to install Jupyter on server, that does not have access to internet. I installed Ipython but to install Jupyter, I think it needs to have internet connection. Any solution for the problem? Thanks
Eli
  • 123
  • 1
  • 12
5
votes
1 answer

How do I make the colours readable in iPython 5?

I've just upgraded to iPython 5 and all the colours are hard to read with my dark terminal background. Is there a way to adjust these?
Alex L
  • 8,748
  • 5
  • 49
  • 75
5
votes
0 answers

Py_Initialize: unable to load the file system codec after anaconda unistall (windows)

Py_Initialize: unable to load the file system codec Import Error: no module named 'encodings' Current thread 0x00001558 (Most recent call first) python is causing error and crashing after i uninstalled Anaconda, i looked at similar posts of…
johnobc
  • 571
  • 3
  • 11
  • 25
5
votes
0 answers
5
votes
0 answers

Using breakpoints in the IPython Jupyter provided in PyCharm

Is there any way to use breakpoints inside an IPython script while in PyCharm?
Mahdi
  • 1,778
  • 1
  • 21
  • 35
5
votes
2 answers

Override ipython exit function - or add hooks in to it

In my project manage, I am embedding iPython with: from IPython import start_ipython from traitlets.config import Config c = Config() c.TerminalInteractiveShell.banner2 = "Welcome to my shell" c.InteractiveShellApp.extensions =…
5
votes
3 answers

Interactive matplotlib plots in jupyter notebook

The following snippet works as expected in ipython console: > anaconda3/bin/ipython3 In [1]: import matplotlib.pyplot as plt import pandas as pd import numpy as np In [2]: plt.ion() In [3]: pd.Series(np.sin(np.arange(0, 10,…
qsd
  • 151
  • 1
  • 1
  • 7
5
votes
3 answers

Numpy-like printing for python objects

While doing data analysis in Ipython I often have to look at the data by just printing its contents to the shell. Numpy have the facility to show only the margins of huge objects when they are too long themselves. I really like this feature of…
Pommy
  • 381
  • 2
  • 10
5
votes
4 answers

render two seaborn figure objects in same ipython cell

I have two matplotlib (seaborn) figure objects both made in different ipython cells. #One Cell fig_1_object = sns.factorplot(y='freq',x='d_fam',col='easy_donor',kind="bar",data=collection_d_fam) fig_1 = fig_1_object.fig #Two Cell fig_2_object =…
jwillis0720
  • 4,329
  • 8
  • 41
  • 74
5
votes
0 answers

Solution to multiprocessing error in Ipython Notebook?

I'm trying to use the multiprocessing module in Ipython Notebook, however when I execute my code, it crashes the Kernel: from multiprocessing import Pool def f(x): return x*x p = Pool(8) p.map(f, [1, 2, 3]) The docs provide this bit of…
mk8efz
  • 1,374
  • 4
  • 20
  • 36
5
votes
1 answer

Can an IPython/Jupyter notebook cell be imported as if it were a module?

Is there a means in IPython to import the contents of a notebook cell as if it were a separate module? Or alternatively get the contents of a cell to have its own namespace.
Mike
  • 2,637
  • 5
  • 29
  • 40
5
votes
2 answers

ipython notebook read multiple images and display in CELL

How do I do the above ? This is my code but it doesn't work nothing is displayed from PIL import Image import glob image_list = [] for filename in glob.glob('.pgm'): im=Image.open(filename) image_list.append(im) import…
Kong
  • 2,202
  • 8
  • 28
  • 56