Reader small image

You're reading from  Learning Jupyter

Product typeBook
Published inNov 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781785884870
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Dan Toomey
Dan Toomey
author image
Dan Toomey

Dan Toomey has been developing application software for over 20 years. He has worked in a variety of industries and companies, in roles from sole contributor to VP/CTO-level. For the last few years, he has been contracting for companies in the eastern Massachusetts area. Dan has been contracting under Dan Toomey Software Corp. Dan has also written R for Data Science, Jupyter for Data Sciences, and the Jupyter Cookbook, all with Packt.
Read more about Dan Toomey

Right arrow

Basic Python in Jupyter


In this chapter, we will be using Python scripts in a Jupyter Notebook. Jupyter does not interact with your scripts as much as it executes your script and records results. I think this is how Jupyter Notebooks have been extended to use other languages besides Python-the notebook just takes a script, runs it against a language engine, and records the output from the engine-all the while not really knowing what kind of script is being executed.

Similarly, I have not noticed any particular limitations when using Python in Jupyter. Some of the scripts I have run have taken a lot of time to run, used a lot of memory, opened new windows, and so on, all without failing. There are known issues running Python scripts that contain a __main__ execution loop and multithreaded applications.

We must open a Python section to our notebook to use Python coding. So, start your notebook, then, in the upper-right menu, select Python 2.

Note

I installed Jupyter in the Spring of 2016 on a...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Jupyter
Published in: Nov 2016Publisher: PacktISBN-13: 9781785884870

Author (1)

author image
Dan Toomey

Dan Toomey has been developing application software for over 20 years. He has worked in a variety of industries and companies, in roles from sole contributor to VP/CTO-level. For the last few years, he has been contracting for companies in the eastern Massachusetts area. Dan has been contracting under Dan Toomey Software Corp. Dan has also written R for Data Science, Jupyter for Data Sciences, and the Jupyter Cookbook, all with Packt.
Read more about Dan Toomey