A Tufts University Data Lab Workshop
Written by Uku-Kaspar Uustalu
Python resources: go.tufts.edu/python
Questions: datalab-support@elist.tufts.edu
Feedback: uku-kaspar.uustalu@tufts.edu
Workshop slides: tufts.box.com/v/python-data-analysis
Live offerings: go.tufts.edu/workshops
Running the Workshop using Binder (virtual JupyterLab)
You can launch an online Binder instance with a JupyterLab interface pre-configured for this workshop as follows:
- Click on the Launch Binder button above.
- A Binder instance will launch in a new tab with the message Starting Repository.
- Wait patiently and do not close the Binder tab.
- After a few minutes, the notebook will launch in a JupyterLab instance.
Running the Workshop Locally on your Computer
If you have Anaconda or Miniconda installed, you can launch the workshop notebook locally as follows:
- Click on the Download Zip or Download TarGz button above to download an archive containing the workshop materials.
- Extract the contents of the downloaded archive to a suitable location and rename the extracted folder if desired.
- Launch JupyterLab either from the command line or via Anaconda Navigator.
- From the command line:
- Launch Terminal (macOS/Linux) or the Anaconda PowerShell Prompt (Windows).
- Windows: Start > Anaconda3 > Anaconda PowerShell Prompt
- macOS: Applications > Utilities > Terminal
- Optional: If you are using Miniconda or have modified your base Anaconda environment, create and activate a new environment for this workshop using the included environment.yml file as follows:
- Navigate to the folder containing the extracted workshop materials from within the console.
- Create a new environment for the workshop:
conda env create -f binder/environment.yml
- Activate the workshop environment:
conda activate python-data-analysis
- Type
jupyter lab
and press Enter/Return to launch JupyterLab.
- Using Anaconda Navigator:
- Launch Anaconda Navigator via the Start Menu (Windows) or from Applications (macOS).
- Windows: Start > Anaconda3 > Anaconda Navigator
- macOS: Applications > Utilities > Terminal
- Launch JupyterLab using the corresponding Launch button.
- JupyterLab will open in a web browser. (A new tab will be generated if a browser is already open.)
- Within the JupyterLab file explorer on the left, navigate to the location of the extracted folder containing the workshop materials.
- Once you are in the correct directory, double-click on python-data-analysis.ipynb in the file browser to open the workshop notebook.