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.

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:

16726 questions
157
votes
4 answers

How can I see function arguments in IPython Notebook Server 3?

I've recently switched to IPython Notebook 3 (3.1.0-cbccb68 to be exact), the Anaconda version. Previously when I typed a function and opened a parenthesis like this: time.sleep() and if the cursor was between the parentheses then I would get a…
user11094
  • 1,731
  • 2
  • 12
  • 7
150
votes
8 answers

Get Output From the logging Module in IPython Notebook

When I running the following inside IPython Notebook I don't see any output: import logging logging.basicConfig(level=logging.DEBUG) logging.debug("test") Anyone know how to make it so I can see the "test" message inside the notebook?
Kyle Brandt
  • 23,178
  • 32
  • 115
  • 158
147
votes
8 answers

How to know which Python is running in Jupyter notebook?

I use Jupyter notebook in a browser for Python programming, I have installed Anaconda (Python 3.5). But I'm quite sure that Jupyter is running my python commands with the native python interpreter and not with anaconda. How can I change it and use…
Victor
  • 1,541
  • 2
  • 8
  • 8
142
votes
7 answers

How can I open the interactive matplotlib window in IPython notebook?

I am using IPython with --pylab=inline and would sometimes like to quickly switch to the interactive, zoomable matplotlib GUI for viewing plots (the one that pops up when you plot something in a terminal Python console). How could I do that?…
metakermit
  • 16,992
  • 10
  • 76
  • 91
138
votes
4 answers

How do you suppress output in Jupyter running IPython?

How can output to stdout be suppressed? A semi-colon can be used to supress display of returned objects, for example >>> 1+1 2 >>> 1+1; # No output! However, a function that prints to stdout is not affected by the semi-colon. >>>…
Zero
  • 9,142
  • 7
  • 45
  • 65
136
votes
8 answers

Jupyter/IPython Notebooks: Shortcut for "run all"?

Is there a shortcut to run all cells in an IPython notebook? And if not, does this have a specific reason?
user3017048
  • 2,201
  • 3
  • 15
  • 30
136
votes
11 answers

How can I add a table of contents to a Jupyter / JupyterLab notebook?

The documentation at http://ipython.org/ipython-doc/stable/interactive/notebook.html says You can provide a conceptual structure for your computational document as a whole using different levels of headings; there are 6 levels available, from level…
user2428107
  • 2,116
  • 2
  • 15
  • 17
132
votes
10 answers

What is the right way to debug in iPython notebook?

As I know, %debug magic can do debug within one cell. However, I have function calls across multiple cells. For example, In[1]: def fun1(a) def fun2(b) # I want to set a breakpoint for the following line # …
Rex
  • 1,907
  • 5
  • 12
  • 18
130
votes
8 answers

How to change color in markdown cells ipython/jupyter notebook?

I'm only looking to format a specific string within a cell. I change that cell's format to "Markdown" but I'm not sure how to change text color of a single word. I don't want to change the look of the whole notebook (via a CSS file).
punkrockpolly
  • 6,432
  • 5
  • 31
  • 34
126
votes
7 answers

Display all dataframe columns in a Jupyter Python Notebook

I want to show all columns in a dataframe in a Jupyter Notebook. Jupyter shows some of the columns and adds dots to the last columns like in the following picture: How can I display all columns?
Michail N
  • 3,055
  • 2
  • 24
  • 44
124
votes
14 answers

How to close IPython Notebook properly?

How to close IPython Notebook properly? Currently, I just close the browser tabs and then use Ctrl+C in the terminal. Unfortunately, neither exit() nor ticking Kill kernel upon exit does help (they do kill the kernel they but don't exit the…
Piotr Migdal
  • 9,638
  • 7
  • 52
  • 77
122
votes
10 answers

resize ipython notebook output window

By default the ipython notebook ouput is limited to a small sub window at the bottom. This makes us force to use separate scroll bar that comes with the output window, when the output is big. Any configuration option to make it not limited in size,…
nom-mon-ir
  • 3,258
  • 4
  • 23
  • 40
121
votes
7 answers

How to get autocomplete in jupyter notebook without using tab?

I would like to get an autocompletion feature in notebooks i.e. when I type something, a dropdown menu appears, with all the possible things I might type, without having to press the tab button. Is there such a thing? I tried : %config…
physicsnoob1000
  • 1,313
  • 2
  • 8
  • 8
120
votes
8 answers

How to git ignore ipython notebook checkpoints anywhere in repository

This is mostly a git question. I want to commit my ipython notebooks but gitignore the checkpoints. The repo has multiple folders which each have ipython notebooks, therefore just ignoring a single directory does not solve it. I want to keep adding…
sapo_cosmico
  • 4,762
  • 6
  • 32
  • 51
118
votes
6 answers

How to recover deleted Jupyter notebook cell?

I use Jupyter notebook. I accidentally deleted a cell, and I can't go step back. How can I recover the notebook cell?
HISI
  • 3,641
  • 2
  • 24
  • 43