Running the Notebook
Prerequisites
Ensure you have:
- Installed Python packages (see Installation).
- Activated your virtual environment.
Starting Jupyter
From the project directory, activate your environment and launch Jupyter:
Using Jupyter Lab (Recommended)
jupyter lab
Your browser should open automatically to http://localhost:8888 (or a similar URL with a token).
Using Jupyter Notebook
jupyter notebook
Opening the Notebook
- In the Jupyter file browser, navigate to and click on
data-visualization-demo.ipynb. - The notebook will open in a new tab.
Running Cells
- Run a single cell: Click the cell and press
Ctrl+Enter(orCmd+Enteron macOS). - Run all cells: From the menu, select Run → Run All Cells.
- Run from a specific point: Click a cell and select Run → Run All Below.
Key Sections
The notebook is organized as follows:
- Setup — Import libraries and install missing dependencies (run this first).
- Load Datasets — Load iris, tips, and flights datasets from Seaborn.
- Visualization Examples — Various chart types (line, scatter, histogram, heatmap, etc.).
- Interactive Plots — Plotly examples with HTML export fallbacks.
- Animations — Matplotlib FuncAnimation with MP4/GIF export.
- Exporting to PDF — Multiple approaches for notebook→PDF conversion.
Troubleshooting
"Kernel died" or "Import error"
- Ensure you activated the virtual environment before launching Jupyter.
- Try restarting Jupyter and running the Setup cell again.
Plots not showing inline
- Confirm
%matplotlib inlineis in the setup cell and has been executed.
Memory or performance issues
- The datashader example creates a large synthetic dataset. Reduce the
multvariable in that cell if your system is resource-constrained.
For more help, see Troubleshooting.