Legal Innovation & Technology Lab
@ Suffolk Law School

Install Jupyter Notebooks

Estimated Time (Reading & Exercises): ~? min.

You are welcome to join our Slack Team. There you can ask and answer questions relating to this lesson under the #howto-datasci channel. See How To for more.

The following is a quick start guide for setting up Project Jupyter notebooks.

Download, Install, and Run Notebooks

Download and install Anaconda (a free software distribution which includes everything you need to use Jupyter). See https://www.continuum.io/downloads. Lab students, you should download Python 3.6.

screen shot

After installation:

These instructions are addapted from Hello, World! Should Attorneys Learn to Code? (instructions at end). Read the full article for more context.

Common Speed Bumps

If you're using Python on your computer for other stuff you may run into all sorts of version issues. In this case, you may want to consider using virtual environments. That being said, if you start to play around and get an error like:

NameError: name 'pd' is not defined

That means that your notebook hasn't loaded a module with the name pd. So either, you’re missing something like this:

import numpy as np

or the module isn't installed on your system. If it's the latter, you’ll get an error like:

ImportError: No module named 'numpy'

when you try to import the module. To install a module, all you have to do is go to the terminal/command prompt and type:

conda install [module name] For example: conda install numpy

If Anaconda can't find the module, you may want to try pip like so:

pip install [module name]

Back to Main How To