Skip to content

Latest commit

 

History

History
101 lines (69 loc) · 2.32 KB

README.md

File metadata and controls

101 lines (69 loc) · 2.32 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.

Important

If this is the very first time for initializing the environment, please install virtualenv and create an isolated Python environment by

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

Activate environment defined by each requirements.txt with:

source .venv/bin/activate

or, on Windows

./venv\Scripts\activate

Tip

To deactivate this environment, use

deactivate

Install dependencies by

pip3 install -r requirements.txt

Starting Jupyter Server

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

python3 -m ipykernel install --user --name=python3 && jupyter notebook

The first half of the composite commands registers virtualenv to Jupyter and give it a name with python3

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.