mscarey / AuthoritySpoke

Reading legal authority for the last time
https://authorityspoke.readthedocs.io
Other
34 stars 2 forks source link

add instructions for running notebooks locally #96

Open mscarey opened 3 years ago

mscarey commented 3 years ago

This process seems to have changed since I replaced setup.py with setup.cfg.

I had to do this:

  1. Use venv to create a virtual environment with a unique name (no other virtual environment on the computer has the same name).

    python -m venv ausvenv
  2. Install both the regular requirements and the dev requirements.

python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
  1. Register the virtual environment with ipykernel.

    python -m ipykernel install --user --name=ausvenv
  2. Start a conda environment.

    conda activate
  3. Activate conda development mode in the authorityspoke directory.

    conda develop .
  4. Start Jupyter Notebook

    jupyter notebook
  5. In the web browser, navigate to the notebooks folder and open one of the .ipynb files.