Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Jupyter 5

You're reading from   Learning Jupyter 5 Explore interactive computing using Python, Java, JavaScript, R, Julia, and JupyterLab

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher
ISBN-13 9781789137408
Length 282 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dan Toomey Dan Toomey
Author Profile Icon Dan Toomey
Dan Toomey
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Introduction to Jupyter FREE CHAPTER 2. Jupyter Python Scripting 3. Jupyter R Scripting 4. Jupyter Julia Scripting 5. Jupyter Java Coding 6. Jupyter JavaScript Coding 7. Jupyter Scala 8. Jupyter and Big Data 9. Interactive Widgets 10. Sharing and Converting Jupyter Notebooks 11. Multiuser Jupyter Notebooks 12. What's Next? 13. Other Books You May Enjoy

First look at Jupyter

Here is a sample opening page when using Jupyter (this screenshot is on a Windows machine):

You should get yourself acquainted with the environment. The Jupyter user interface has a number of components:

  • The product title, Jupyter, in the top left (as expected). The logo and the title name are clickable and will return you to the Jupyter Notebook home page.
  • There are three tabs which are displayed: Files, Running, and Clusters:

  • The Files tab shows the list of files in the current directory of the page (described later on in this section).
  • The Running tab presents another screen, which shows the currently running processes and Notebooks. The drop-down lists for Terminals and Notebooks are populated with their running members:

  • The Clusters tab presents another screen which displays a list of available clusters. This topic is covered in a later chapter:

  • In the top right corner of the screen, are three buttons: Upload, New (menu), and a Refresh notebook list button.
  • The Upload button is used to add files to the Notebook space. You may also just drag and drop as you would when handling files. Similarly, you can drag and drop Notebooks into specific folders as well.
  • The menu with New at the top presents a further menu of the Notebook for the different Notebook engines that have been installed (I had installed Jupyter earlier these are not default values) Javascript (Node.js), Julia 0.6.1, Python 2 (which will not be covered in this book), and Python 3. The additional Other menu items are Text File, Folder, and Terminal:

  • The Text File option is used to add a text file to the current directory. Jupyter will open a new browser window for you, running a text editor. The text entered is automatically saved and will be displayed in your Notebook files and directory display:

The default filename, untitled1.txt, is editable. Note that the filename corresponds with the title given to the Notebook.
  • The Folder option creates a new folder with the name Untitled Folder. Remember that all of the file and folder names are editable:

  • The Terminals option is used to open a new Terminal (command) window. The resulting display on a Windows machine looks as follows:

  • The Python 3 option is used to start a new Python 3 Notebook. The interface looks like it does in the following screenshot. You have full file editing capabilities for your script, including saving as a new file. You also have a complete working IDE for your Python script:

Note, like the Text File and Folder option, you have created a Python script file in your Notebook and it is running! (You can see this in the home page display of Jupyter):
  • The Refresh notebook list button is used to update the display. It's not really necessary as the display is reactive to any changes in the underlying file structure.
  • At the top of the Files tab is a checkbox, a drop-down menu, and a Home button.
  • The checkbox is used to toggle all the checkboxes in the items list.
  • The drop-down menu presents a list of the choices available, that is, Folders, All Notebooks, Running, and Files, as shown in the following screenshot:

  • The Folders selection will select all the folders in the display and present a count of the folders in the small box.
  • The All Notebooks selection will change the count to the number of Notebooks and provide you with five options:
    • Duplicate (the selected Notebooks)
    • Shutdown (the selected Notebooks)
    • View (the selected Notebooks)
    • Edit (the selected Notebooks)
    • Delete (the trash can icon; the selected Notebooks)
  • You can see them in the following screenshot:

  • The Running selection will select any running scripts in the display and update the count to the number selected:
  • The Files selection will select all of the files in the Notebook display and update the count accordingly.
  • The Home button brings you back to the home screen of the Notebook.
  • On the left-hand side of every item is a checkbox, an icon, and the item's name:

  • The checkbox is used to build a set of files to operate upon.
  • The icon is indicative of the type of item. In this case, all of the items are folders.
  • The name of the item corresponds to the name of the object. In this case, the filenames are as they are when used on the disk.
You have been reading a chapter from
Learning Jupyter 5 - Second Edition
Published in: Aug 2018
Publisher:
ISBN-13: 9781789137408
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime