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
124
votes
20 answers

IPython/Jupyter Problems saving notebook as PDF

So, I've been trying to save a jupyter notebook as PDF but I just can't figure out how to do this. The first thing I try is from the file menu just download as PDF, but doing that results in: nbconvert failed: PDF creating failed the next thing I…
Isak Baizley
  • 1,722
  • 4
  • 16
  • 21
122
votes
12 answers

How to reload modules in django shell?

I am working with Django and use Django shell all the time. The annoying part is that while the Django server reloads on code changes, the shell does not, so every time I make a change to a method I am testing, I need to quit the shell and restart…
Mad Wombat
  • 14,490
  • 14
  • 73
  • 109
121
votes
13 answers

ipython reads wrong python version

I've been having trouble with Python, iPython and the libraries. The following points show the chain of the problematics. I'm running Python 2.7 on Mac Lion. iPython doesn't read the libraries of scipy, matplotlib, but it does read numpy. To…
Diego-MX
  • 2,279
  • 2
  • 20
  • 35
118
votes
8 answers

How to iterate over consecutive chunks of Pandas dataframe efficiently

I have a large dataframe (several million rows). I want to be able to do a groupby operation on it, but just grouping by arbitrary consecutive (preferably equal-sized) subsets of rows, rather than using any particular property of the individual rows…
Andrew Clegg
  • 1,502
  • 3
  • 11
  • 9
116
votes
5 answers

Make more than one chart in same IPython Notebook cell

I have started my IPython Notebook with ipython notebook --pylab inline This is my code in one cell df['korisnika'].plot() df['osiguranika'].plot() This is working fine, it will draw two lines, but on the same chart. I would like to draw each…
WebOrCode
  • 6,852
  • 9
  • 43
  • 70
116
votes
15 answers

How do I get the current IPython / Jupyter Notebook name

I am trying to obtain the current NoteBook name when running the IPython notebook. I know I can see it at the top of the notebook. What I am after something like currentNotebook = IPython.foo.bar.notebookname() I need to get the name in a variable.
Tooblippe
  • 3,433
  • 3
  • 17
  • 25
115
votes
6 answers

IPython Notebook cell multiple outputs

I am running this cell in IPython Notebook: # salaries and teams are Pandas dataframe salaries.head() teams.head() The result is that I am only getting the output of teams data-frame rather than of both salaries and teams. If I just run…
Lokesh
  • 2,842
  • 7
  • 32
  • 47
115
votes
9 answers

How to dynamically update a plot in a loop in IPython notebook (within one cell)

Environment: Python 2.7, Matplotlib 1.3, IPython notebook 1.1, Linux, and Chrome. The code is in one single input cell, using --pylab=inline. I want to use IPython notebook and Pandas to consume a stream and dynamically update a plot every five…
user3236895
  • 1,415
  • 2
  • 12
  • 13
115
votes
7 answers

How do I use vi keys in ipython under *nix?

Currently in Bash I use set -o vi to enable vi mode in my bash prompt. How do I get this going in ipython?
gak
  • 32,061
  • 28
  • 119
  • 154
114
votes
5 answers

Is there an equivalent to CTRL+C in IPython Notebook in Firefox to break cells that are running?

I've started to use the IPython Notebook and am enjoying it. Sometimes, I write buggy code that takes massive memory requirements or has an infinite loop. I find the "interrupt kernel" option sluggish or unreliable, and sometimes I have to restart…
wwwilliam
  • 9,142
  • 8
  • 30
  • 33
111
votes
6 answers

How do I get interactive plots again in Spyder/IPython/matplotlib?

I upgraded from Python(x,y) 2.7.2.3 to 2.7.6.0 in Windows 7 (and was happy to see that I can finally type function_name? and see the docstring in the Object Inspector again) but now the plotting doesn't work as it used to. Previously (Spyder 2.1.9,…
endolith
  • 25,479
  • 34
  • 128
  • 192
109
votes
2 answers

What are the differences between ipython and bpython?

What does ipython have that bpython lacks and vice versa? How do the two differ?
igorgue
  • 17,884
  • 13
  • 37
  • 54
109
votes
14 answers

How to disable password request for a Jupyter notebook session?

I have been launching Jupyter Notebook for years using the following command: jupyter-notebook --port=7000 --no-browser --no-mathjax When I try to open the jupyter on the browser it ask me for a password, even though I have never set any before. It…
Salvatore Cosentino
  • 6,663
  • 6
  • 17
  • 25
108
votes
12 answers

Installing a pip package from within a Jupyter Notebook not working

When I run !pip install geocoder in Jupyter Notebook I get the same output as running pip install geocoder in the terminal but the geocoder package is not available when I try to import it. I'm using Ubuntu 14.04, Anaconda 4.0.0 and pip…
Mikhail Janowski
  • 4,209
  • 7
  • 28
  • 40
108
votes
7 answers

in Ipython notebook / Jupyter, Pandas is not displaying the graph I try to plot

I am trying to plot some data using pandas in Ipython Notebook, and while it gives me the object, it doesn't actually plot the graph itself. So it looks like this: In [7]: pledge.Amount.plot() Out[7]:
chrisfs
  • 6,182
  • 6
  • 29
  • 35