Tested with Python 3.11
Create Python virtual environment:
python3 -m venv venvActivate virtual environment:
source ./venv/bin/activateDeactivate virtual environment:
deactivate- The following packages may need to be installed on the system:
- nodejs
- pandoc
- pip
- yarn
- wheel
I used MacPorts on macOS to install these packages as follows:
port install nodejs18
port install pandoc
port install py-wheel
port install py-pip
port install yarn- Install
math27package and dependencies by running the following command from within thePythondirectory:
pip install -e .Save notebook to HTML, including current state of widgets (check that Settings -> Save Widget State Automatically is selected):
jupyter nbconvert --to html --no-input <notebook_name>.ipynbimport importlib as i
nl = i.import_module('nlsa')
i.reload(nl)To create requirements.txt:
pip freeze > requirements.txt