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
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
557
votes
25 answers

Conda environments not showing up in Jupyter Notebook

I installed Anaconda (with Python 2.7), and installed Tensorflow in an environment called tensorflow. I can import Tensorflow successfully in that environment. The problem is that Jupyter Notebook does not recognize the new environment I just…
user31039
  • 6,149
  • 4
  • 14
  • 9
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
524
votes
38 answers

How to change the Jupyter start-up folder

I tried following the instructions given on the Jupyter Notebook documentation. Unfortunately, I haven't been able to figure it out. Where exactly is this "start in" field? I've a windows 7 (64 bit) system, with Anaconda3 installed (not in C drive).…
kchak
  • 7,570
  • 4
  • 20
  • 31
492
votes
18 answers

Change the Theme in Jupyter Notebook?

I like dark themes. However, the default theme of Jupyter notebooks is light, and I can't find the option to change the theme/background-color. How is this done?
Moby Khan
  • 5,016
  • 3
  • 13
  • 16
485
votes
19 answers

How to embed image or picture in jupyter notebook, either from a local machine or from a web resource?

I would like to include image in a jupyter notebook. If I did the following, it works : from IPython.display import Image Image("img/picture.png") But I would like to include the images in a markdown cell and the following code gives a 404 error…
Ger
  • 9,076
  • 10
  • 37
  • 48
425
votes
8 answers

What is the difference between Jupyter Notebook and JupyterLab?

I am new to Jupyter Notebook, what is the key difference between the Jupyter Notebook and JupyterLab, suggest me to choose the best one, which should be used in future.
krist
  • 4,357
  • 2
  • 9
  • 11
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
365
votes
21 answers

Jupyter Notebook not saving: '_xsrf' argument missing from post

I've been running a script on jupyter notebooks for about 26 hour; I haven't really been using my computer for anything else, but it needs to run this program that will take ~30 hours to complete. At about 21 hours in, it stopped saving and my…
V P
  • 3,704
  • 2
  • 9
  • 12
358
votes
18 answers

How do I block comment in Jupyter notebook?

I want to comment out a block of multiple lines in Jupyter Notebook, but can't find out how to do that in this current version. It used to be in one of the drop down menus but is no longer there. How do you comment out multi-line blocks of code at…
chrisfs
  • 6,182
  • 6
  • 29
  • 35
355
votes
9 answers

Show DataFrame as table in iPython Notebook

I am using iPython notebook. When I do this: df I get a beautiful table with cells. However, if i do this: df1 df2 it doesn't print the first beautiful table. If I try this: print df1 print df2 It prints out the table in a different format…
Chris
  • 12,900
  • 12
  • 43
  • 65
1
2 3
99 100