Installing Jupyter

Step 1

You need to make yourself familiar with the command line. There are many such tutorials out there; I encourage you to follow this one from Melanie Walsh’s Intro to Cultural Analytics class

Step 2

Anaconda is a package of different programming languages and utilities for ‘scientific computing’. Go to the installation page and find the version that is appropriate for your machine. Download and then run the installer.

Accept all the defaults until you get to this screen:

Add to path screen

The ‘PATH’ variable is like a bin where your computer stores the locations of different programs that you want to access from anywhere on your computer (otherwise, you can only access programs when you’re in the right place). Tick the ‘Add Anaconda3 to my PATH environment variable’ check box. Now you’ll be able to run Juypter notebooks from the command line in any folder.

Make sure to verify that everything installed correctly

And GO!

On your computer, search for something called ‘Anaconda Navigator’. Launch that, then if you click on ‘Jupyter Notebooks’ or ‘Jupyter Lab’ - you are now all set up and ready to go!

navigator

An alternative way to launch jupyter notebooks or jupyter labs is to open the command line in a given folder, then type $ jupyter notebook or $ jupyter lab. Note that you don’t type the $ symbol; this is a convention to indicate that what follows is meant to be typed on the command line.

At this point, if you come across a file with .ipynb as its extension, you can open it and run it in a Jupyter notebook or lab. Try it now - right-click on this link and save-as to your computer. Then, open a command line in the folder where you saved the file. Start up $ jupyter notebook - which opens a new tab in your browser - and then click on the file you downloaded. Now you can run and save your work locally!

A Video Walkthrough on Installing and Working with Jupyter Notebook Locally

Included in this tutorial:

  • Installing Miniconda
  • Installing Jupyter Notebook using conda
  • Exploring the GLAM Workbench
  • Running a downloaded notebook locally
  • Adding your notebook to a git repository and publishing it with myBinder