Skip to content
/ math27 Public

Python code accompanying MATH 27: Dynamical Systems with Applications

License

Notifications You must be signed in to change notification settings

dg227/math27

Repository files navigation

Python Code for MATH 27: Dynamical Systems with Applications

Tested with Python 3.11

Virtual environment

Create Python virtual environment:

python3 -m venv venv

Activate virtual environment:

source ./venv/bin/activate

Deactivate virtual environment:

deactivate

Installation

  1. 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
  1. Install math27 package and dependencies by running the following command from within the Python directory:
pip install -e .

Notebook output

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>.ipynb

Running from interpeter

import importlib as i
nl = i.import_module('nlsa')
i.reload(nl)

Requirements metadata

To create requirements.txt:

pip freeze > requirements.txt

About

Python code accompanying MATH 27: Dynamical Systems with Applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published