Questions tagged [jupyter-notebook]

The Jupyter Notebook is a web application that provides a frontend to many different languages and interactive shells such as IPython. Jupyter Notebook, unlike its predecessor IPython Notebook, supports many different languages and interactive shells in addition to Python and IPython. DO NOT use this tag on questions regarding code which merely happens to be written using Jupyter Notebooks, use the appropriate language tag instead, e.g. [python], [r].

Jupyter Notebook is a web application based on . It provides a frontend to many different languages and interactive shells.

Jupyter Notebook supports more than 40 different languages including , , and .

Each Jupyter Notebook document may contain executable code blocks, outputs, and Markdown text.

Jupyter Notebook is the successor to , which was part of the project. However, Jupyter and IPython are separate projects as of IPython 4.0.

More information

24660 questions
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
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
323
votes
10 answers

Pandas: Setting no. of max rows

I have a problem viewing the following DataFrame: n = 100 foo = DataFrame(index=range(n)) foo['floats'] = np.random.randn(n) foo The problem is that it does not print all rows per default in ipython notebook, but I have to slice to view the…
Andy
  • 9,483
  • 12
  • 38
  • 39
320
votes
16 answers

How can I display an image from a file in Jupyter Notebook?

I would like to use an IPython notebook as a way to interactively analyze some genome charts I am making with Biopython's GenomeDiagram module. While there is extensive documentation on how to use matplotlib to get graphs inline in IPython notebook,…
zach
  • 29,475
  • 16
  • 67
  • 88
317
votes
32 answers

Change IPython/Jupyter notebook working directory

When I open a Jupyter notebook (formerly IPython) it defaults to C:\Users\USERNAME. How can I change this so to another location?
John
  • 41,131
  • 31
  • 82
  • 106
314
votes
38 answers

How can I prevent Google Colab from disconnecting?

Is there a way to programmatically prevent Google Colab from disconnecting on a timeout? The following describes the conditions causing a notebook to automatically disconnect: Google Colab notebooks have an idle timeout of 90 minutes and absolute…
Chan Kha Vu
  • 9,834
  • 6
  • 32
  • 64
306
votes
30 answers

After installing with pip, "jupyter: command not found"

After installing with pip install jupyter, terminal still cannot find jupyter notebook. Ubuntu simply says command not found. Similar with ipython. Did pip not get install properly or something? How does Ubuntu know where to look for…
john mangual
  • 7,718
  • 13
  • 56
  • 95
295
votes
6 answers

Autoreload of modules in IPython

Is there a way to have IPython automatically reload all changed code? Either before each line is executed in the shell or failing that when it is specifically requested to. I'm doing a lot of exploratory programming using IPython and SciPy and it's…
Thomas Parslow
  • 5,712
  • 4
  • 26
  • 33
270
votes
15 answers

How to run an .ipynb Jupyter Notebook from terminal?

I have some code in a .ipynb file and got it to the point where I don't really need the "interactive" feature of IPython Notebook. I would like to just run it straight from a Mac Terminal Command Line. Basically, if this were just a .py file, I…
Vincent
  • 7,808
  • 13
  • 49
  • 63
269
votes
8 answers

remove kernel on jupyter notebook

How can I remove a kernel from jupyter notebook? I have R kernel on my jupyter notebook. Recently kernel always dies right after I open a new notebook.
zesla
  • 11,155
  • 16
  • 82
  • 147
269
votes
6 answers

How to load/edit/run/save text files (.py) into an IPython notebook cell?

I've recently moved over to using IPython notebooks as part of my workflow. However, I've not been successful in finding a way to import .py files into the individual cells of an open IPython notebook so that they can edited, run and then saved.…
aaronsstack
  • 2,793
  • 3
  • 13
  • 8
267
votes
11 answers

Using both Python 2.x and Python 3.x in IPython Notebook

I use IPython notebooks and would like to be able to select to create a 2.x or 3.x python notebook in IPython. I initially had Anaconda. With Anaconda a global environment variable had to be changed to select what version of python you want and…
deltap
  • 4,176
  • 7
  • 26
  • 35
247
votes
6 answers

How to embed HTML into IPython output?

Is it possible to embed rendered HTML output into IPython output? One way is to use from IPython.core.display import HTML HTML('link') or (IPython multiline cell alias) %%html
Anton Tarasenko
  • 8,099
  • 11
  • 66
  • 91