Skip to content

Latest commit

 

History

History
102 lines (68 loc) · 2.18 KB

README.md

File metadata and controls

102 lines (68 loc) · 2.18 KB

Jupyter Notebooks

Notebooks badge Python Version Badge Apache License Badge

Notebooks

Setup

Getting Source Code

https://github.com/QubitPi/jupyter-notebooks.git

Navigating to A Notebook Directory

cd jupyter-notebooks/notebooks

Each subdirectory in notebooks is a standalone Jupyter notebook. Choose and navigate into one of them. For example

cd housing

Creating an Isolated Environment

It is strongly recommended to work in an isolated environment. Install virtualenv and create an isolated Python environment by

python3 -m pip install --user -U virtualenv
python3 -m virtualenv .venv

To activate this environment:

source .venv/bin/activate

or, on Windows

./venv\Scripts\activate

Tip

To deactivate this environment, use

deactivate

Installing Dependencies

pip3 install -r requirements.txt

If we created a virtualenv, we need to register it to Jupyter and give it a name:

python3 -m ipykernel install --user --name=python3

Starting Jupyter Server

Now we can fire up Jupyter by typing the following command:

jupyter notebook

A Jupyter server is now running in our terminal, listening to port 8888. We can visit this server by opening our web browser to http://localhost:8888/

Open up one of the notebooks

License

The use and distribution terms for jupyter-notebooks are covered by the Apache License, Version 2.0.