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
8
votes
1 answer

How do I center the outputs on a Python Jupyter notebook?

I have a report that I have created in a Jupyter Notebook. I want the outputs (plots) to be centered for aesthetic reasons. I have tried the answer given here: Centering output on IPython notebook However this one does not work. I did find this…
Nicholas
  • 3,517
  • 13
  • 47
  • 86
8
votes
1 answer

how to make a large figure in a Jupyter notebook cell, scrollable when it is output to html

As you know, when you print a large table in a Jupyter Notebook cell, it is automatically made scrollable horizontally or vertically when it is too large whether the table is printed in the Notebook environment or is saved to an html file. But for…
Royalblue
  • 639
  • 10
  • 22
8
votes
2 answers

Hide the cell tag panel in Jupyter Notebook

Jupyter notebook has a new feature of cell tags since version 5.0 as described in the changelog. I activated the cell tags going to View > Cell Toolbar as described on their page. How can I deactivate this little panel on the cells? Pressing the…
gevra
  • 737
  • 2
  • 14
  • 26
8
votes
1 answer

Call a function written in different file from jupyter notebook

From a jupyter notebook, I'd like to call a function written in another .ipynb file. The partial answer is given in this thread Reusing code from different IPython notebooks by drevicko. As an example, I'm using plus_one function written in…
koch
  • 97
  • 1
  • 6
8
votes
3 answers

Run Jupyter-notebook on boot on Ubuntu

I have an Ubuntu 16.04 Virtual Machine with anaconda installed, And I want it to launch Jupyter-notebook on startup with the correct configuration file (ip address, port, password,...) This configuration is specified in…
Simon Houdayer
  • 163
  • 1
  • 1
  • 10
8
votes
1 answer

Disable Jupyter Notebook automatic hyperlink

In my notebook, I print some data from scraped web pages. Some of these are hyperlinks without tags e.g. https://stackoverflow.com. Unfortunately, Notebook prints these out as an actual hyperlink (i.e. wraps it in tags) on the output page and…
Bram Vanroy
  • 27,032
  • 24
  • 137
  • 239
8
votes
1 answer

nbconvert: exporting to another directory?

I'm wondering if it's possible to export a Jupyter notebook to a different directory than the same directory as the notebook itself? I'm using this to build HTML versions of the notebooks, and I'd like them to reside under docs/ in my GitHub repo…
ericmjl
  • 13,541
  • 12
  • 51
  • 80
8
votes
4 answers

Getting "OSError: [WinError 6] The handle is invalid" in VideoFileClip function

I am creating a program using python by importing moviepy library, but getting following error: from moviepy.editor import VideoFileClip white_output = 'videos/testVideo.mp4' clip1 = VideoFileClip("videos/testVideo.mp4") OSError …
Deepak Tekchandani
  • 488
  • 2
  • 5
  • 15
8
votes
1 answer

convert notebook generated HTML snippet to LaTeX and PDF

In my notebooks I sometimes have from IPython.display import display, HTML ... display(HTML('

The %s is important!

'%question_of_the_day)) ... but when I later convert the notebook to .pdf (with the intermediate step of a LaTeX file) what I…
gboffi
  • 22,939
  • 8
  • 54
  • 85
8
votes
1 answer

`ProcessPoolExecutor` works on Ubuntu, but fails with `BrokenProcessPool` when running Jupyter 5.0.0 notebook with Python 3.5.3 on Windows 10

I'm running Jupyter 5.0.0 notebook with Python 3.5.3 on Windows 10. The following example code fails to run: from concurrent.futures import as_completed, ProcessPoolExecutor import time import numpy as np def do_work(idx1, idx2): …
8
votes
1 answer

How can we configure the cpu and memory resources for Jupyter notebook

I am new to using Jupyter notebook. I have installed Jupyter using Anaconda and have set up a jupyter server. I wanted to control the cpu and memory available for Jupyter. Is there any configuration for doing that? What is the best way to achieve…
Midhun Mathew Sunny
  • 1,271
  • 4
  • 17
  • 30
8
votes
2 answers

Output figure size in Jupyter Notebook

I just upgraded my Jupyter version to 4.2.1 and it seems as though inline figures have gotten a lot larger for the same figsize. Am I imagining this? Can I change that without changing the figsize?
Shahar
  • 886
  • 1
  • 10
  • 22
8
votes
1 answer

Jupyter, Python, %Debug: Setting breakpoint in module doesn't work

I am using Jupyter Notebook. Considering the following code: cell1 import pdbtest cell2 %debug -b pdbtest.py:3 pdbtest.test(4,6) end of cell2 pdbtest.py is a module located in the same folder as the notebook, containing: def test(a,b): …
Radar
  • 935
  • 3
  • 9
  • 23
8
votes
1 answer

Jupyter Notebook, Python: How to call a magic from within a function?

I am using the Jupyter Notebook, and am trying to create a widget, based on a template found on Github. The template uses at some point the magic %%javascript. This works fine when directly pasted in the cells of the notebook. However when I tried…
Radar
  • 935
  • 3
  • 9
  • 23
8
votes
2 answers

Pyspark read multiple csv files into a dataframe (OR RDD?)

I've got a Spark 2.0.2 cluster that I'm hitting via Pyspark through Jupyter Notebook. I have multiple pipe delimited txt files (loaded into HDFS. but also available on a local directory) that I need to load using spark-csv into three separate…
1 2 3
99
100