Skip to content

Detailed worked solutions to high-school science problems

Notifications You must be signed in to change notification settings

paultcochrane/after-school-help

Repository files navigation

After school help

Detailed worked solutions to high-school science problems.

If you like this project and want to see more content, please buy me a coffee!

"Buy Me A Coffee"

Physics

Maths

Running Jupyter notebooks on your own computer

It's not necessary to use the JupyterLab notebooks linked above only through Binder; you can also run them on your own computer. If you use Windows, you'll need to use Windows Subsystem for Linux (WSL) for the following instructions to work. On MacOS or Linux, just open a terminal and enter the commands there.

First things first: clone the repository. You'll need to use a command like this:

git clone https://github.com/paultcochrane/after-school-help.git

That will create a directory named after-school-help; change into that directory (via the cd command) and then install the Python requirements with the pip command.

cd after-school-help  # change into the directory we just created
python3 -m venv venv  # create the Python virtual environment
source venv/bin/activate  # activate the Python virtual environment
pip install -r requirements.txt  # install the required Python libraries

Alternatively, you could just run the setup script and then activate the virtual environment:

cd after-school-help  # change into the directory we just created
./setup.sh  # set up project and install Python libraries
source venv/bin/activate  # activate the Python virtual environment

Now you'll be ready to start the JupyterLab notebook environment. Just run

jupyter lab

and the JupyterLab environment will start with a launcher window similar to that below:

JupyterLab initial screen

To open a pre-existing notebook, just double click on one of the folders (e.g. physics or maths) and double click on a notebook file (anything with the notebook icon icon or any file with the .ipynb extension). For instance, if you open the evaporating a pot of water worked example file, you'll see something like this:

JupyterLab opened example notebook

Now feel free to play around, change the numbers in the code and re-run the individual notebook cells to see the effects of your changes!

About

Detailed worked solutions to high-school science problems

Topics

Resources

Stars

Watchers

Forks