Skip to content

ionworks/blog-notebooks

Repository files navigation

Ionworks blog notebooks

Open In Colab

This repository hosts the notebooks that support the posts in the Ionworks blog. You can either run them in the cloud using Google Colab or locally.

🚀 Installation

In order to run the notebooks locally you will need to installing a number of packages. We recommend installing within a virtual environment in order to not alter any python distribution files on your machine.

PyBaMM is available on GNU/Linux, MacOS and Windows. For more detailed instructions on how to install PyBaMM, see the PyBaMM documentation.

Linux/Mac OS

To install the requirements on Linux/Mac OS use the following terminal commands:

  1. Clone the repository
git clone https://github.com/ionworks/blog-notebooks
  1. Change into the blog-notebooks directory
cd blog-notebooks
  1. Create a virtual environment
virtualenv env
  1. Activate the virtual environment
source env/bin/activate
  1. Install PyBaMM and Jupyter
pip install pybamm jupyter
  1. Launch Jupyter notebook
jupyter notebook
  1. You can check the notebooks in your browser.

Windows

To install the requirements on Windows use the following commands:

  1. Clone the repository
git clone https://github.com/ionworks/blog-notebooks
  1. Change into the blog-notebooks directory
cd blog-notebooks
  1. Create a virtual environment
python -m virtualenv env
  1. Activate the virtual environment
env\Scripts\activate

where env is the path to the environment created in step 3 (e.g. C:\Users\'Username'\env\Scripts\activate.bat).

  1. Install PyBaMM and Jupyter
pip install pybamm jupyter
  1. Launch Jupyter notebook
jupyter notebook
  1. You can check the notebooks in your browser.

As an alternative, you can set up Windows Subsystem for Linux. This allows you to run a full Linux distribution within Windows.

About

Notebooks to support the Ionworks blog posts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •