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
1076
votes
14 answers

What is the difference between pip and conda?

I know pip is a package manager for python packages. However, I saw the installation on IPython's website use conda to install IPython. Can I use pip to install IPython? Why should I use conda as another python package manager when I already have…
lazywei
  • 11,955
  • 5
  • 20
  • 25
944
votes
11 answers

How to make IPython notebook matplotlib plot inline

I am trying to use IPython notebook on MacOS X with Python 2.7.2 and IPython 1.1.0. I cannot get matplotlib graphics to show up inline. import matplotlib import numpy as np import matplotlib.pyplot as plt %matplotlib inline I have also tried…
Ian Fiske
  • 10,482
  • 3
  • 21
  • 20
908
votes
12 answers

Purpose of "%matplotlib inline"

What exactly is the use of %matplotlib inline?
Rishabh
  • 9,367
  • 4
  • 11
  • 6
641
votes
22 answers

Using IPython / Jupyter Notebooks Under Version Control

What is a good strategy for keeping IPython notebooks under version control? The notebook format is quite amenable for version control: if one wants to version control the notebook and the outputs then this works quite well. The annoyance comes when…
mforbes
  • 7,062
  • 3
  • 16
  • 21
545
votes
15 answers

How do I increase the cell width of the Jupyter/ipython notebook in my browser?

I would like to increase the width of the ipython notebook in my browser. I have a high-resolution screen, and I would like to expand the cell width/size to make use of this extra space. Thanks!
vgoklani
  • 10,685
  • 16
  • 63
  • 101
542
votes
14 answers

Reloading submodules in IPython

Currently I am working on a python project that contains sub modules and uses numpy/scipy. Ipython is used as interactive console. Unfortunately I am not very happy with workflow that I am using right now, I would appreciate some advice. In IPython,…
Alain
  • 5,525
  • 4
  • 16
  • 6
508
votes
5 answers

Hide all warnings in IPython

I need to produce a screencast of an IPython session, and to avoid confusing viewers, I want to disable all warnings emitted by warnings.warn calls from different packages. Is there a way to configure the ipythonrc file to automatically disable all…
astrofrog
  • 32,883
  • 32
  • 90
  • 131
418
votes
10 answers

How to make inline plots in Jupyter Notebook larger?

I have made my plots inline on my Ipython Notebook with "%matplotlib inline." Now, the plot appears. However, it is very small. Is there a way to make it appear larger using either notebook settings or plot settings?
Chris
  • 28,822
  • 27
  • 83
  • 158
407
votes
19 answers

How do I convert a IPython Notebook into a Python file via commandline?

I'm looking at using the *.ipynb files as the source of truth and programmatically 'compiling' them into .py files for scheduled jobs/tasks. The only way I understand to do this is via the GUI. Is there a way to do it via command line?
Stefan Krawczyk
  • 4,103
  • 3
  • 14
  • 6
371
votes
25 answers

How do I add python3 kernel to jupyter (IPython)

My Jupyter notebooks installed with python 2 kernel. I do not understand why. I might have messed something up when I did the install. I already have python 3 installed. How can I add it to Jupyter? Here's a screenshot of what the default Jupyter…
quickbug
  • 4,708
  • 5
  • 17
  • 21
354
votes
15 answers

How to write LaTeX in IPython Notebook?

How can I display LaTeX code in a IPython Notebook?
KostasA
  • 5,204
  • 6
  • 23
  • 29
341
votes
17 answers

In which conda environment is Jupyter executing?

I have jupyter/anaconda/python3.5. How can I know which conda environment is my jupyter notebook running on? How can I launch jupyter from a new conda environment?
RockScience
  • 17,932
  • 26
  • 89
  • 125
339
votes
10 answers

Progress indicator during pandas operations

I regularly perform pandas operations on data frames in excess of 15 million or so rows and I'd love to have access to a progress indicator for particular operations. Does a text based progress indicator for pandas split-apply-combine operations…
cwharland
  • 6,275
  • 3
  • 22
  • 29
331
votes
14 answers

Simple way to measure cell execution time in ipython notebook

I would like to get the time spent on the cell execution in addition to the original output from cell. To this end, I tried %%timeit -r1 -n1 but it doesn't expose the variable defined within cell. %%time works for cell which only contains 1…
colinfang
  • 20,909
  • 19
  • 90
  • 173
325
votes
14 answers

Inserting image into IPython notebook markdown

I am starting to depend heavily on the IPython notebook app to develop and document algorithms. It is awesome; but there is something that seems like it should be possible, but I can't figure out how to do it: I would like to insert a local image…
benpro
  • 4,325
  • 4
  • 19
  • 17
1
2 3
99 100