This page will show you how to set up your computer to follow along with the examples in the CrePre workshop.

All of our code examples are provided as Python 3 code in jupyter notebooks.

You’re very welcome to set this up before the tutorial, but during the tutorial we won’t have much time to help individuals with their python installation. If you’re having trouble you can follow on the screen or try out some notebooks in Google Colab (online) – see below.

Running examples on your computer

Basically: you need a Python 3 environment with up-to-date versions of: keras, tensorflow, numpy, pandas, matplotlib, music21, jupyter

Annoyingly, there are two popular ways to set up Python on your computer: one installs python packages together in a special “environment” for each project you do, and the other sets up the packages for every project on your system.

Setup Miniconda to get the right Python

On Windows and confused? Try this page for help.

Install packages with Pip

Virtual Environments

Many people like to keep their Python libraries in separate “environments” for each project. If you do this, you can access each environment from Jupyter individually which is handy! Here’s how to for this.

Running examples in a browsers

You can also run these notebooks on Google Colaboratory (, an online Jupyter notebook system that could be useful, however, it’s a bit more tricky to distribute the jupyter notebooks so that you can easily open them in Colab.

There’s links below, but you can check out all the Jupyter Notebooks for this course (and other!) on Github.