Skip to content
Skip to main content

Instructions for installing the Learn to Code for Data Analysis free course software

Updated Friday, 20 May 2016
Use these instructions to install, run and test the appropriate software for the free course Learn to Code for Data Analysis.

This page was published over 1 year ago. Please be aware that due to the passage of time, the information provided on this page may be out of date or otherwise inaccurate, and any views or opinions expressed may no longer be relevant. Some technical elements such as audio-visual and interactive media may no longer work. For more detail, see how we deal with older content.

Find out more about The Open University's Computing and IT courses and qualifications

For this course you can use either CoCalc or Anaconda. Each has its advantages and disadvantages, but both contain all the data processing software needed for this course: the Python programming language, the data analysis module Pandas, the Jupyter notebook application, and the IPython environment for executing Python code in a Jupyter notebook.

CoCalc is a free online service. The advantages are that you don't have to install any software and you can work on the course exercises from anywhere there is an internet connection. The disadvantages are that you need a good internet connection, running the code in your notebook may take time if there are many simultaneous users on CoCalc, and you may occasionally lose the latest changes you did to your notebook because the service will periodically reset. However, notebooks are regularly saved automatically and you can also save after each change, so the risk of losing work should be rather small. CoCalc offers a paid plan that has better performance and stability than the free plan. The Open University, Futurelearn and the educators have no commercial affiliation with CoCalc.

The other option is to install on your laptop or desktop the free Anaconda package. The disadvantages are that you will need about 3GB of disk space, and that you might run into installation problems, especially on older Windows versions. The advantage is that Anaconda runs locally on your machine and therefore doesn't have the limitations of CoCalc . We recommend you use Anaconda if you are always going to work on this course from the same computer. If you plan to work on this course from multiple computers, you will need to install Anaconda on each one. You can use cloud storage, like Dropbox, to keep your notebooks in sync across machines.

When you’ve decided whether to use CoCalc or Anaconda, please follow the corresponding instructions below. Note that this installation page, CoCalc, notebooks and other things may now look slightly different to how they looked when the videos were produced.

CoCalc instructions

To use CoCalc (formerly known as SageMathCloud) you need a modern web browser and this notebook to test your installation. To create a CoCalc account and test everything is working, follow the instructions on this video:


Anaconda instructions

Download the latest version of Anaconda from here.

Make sure you download the version for your operating system (Windows Vista or more recent, Mac OS 10.9 or more recent, or Linux). Make sure you download the Python 3.6 version (or higher), not the Python 2.7 version.

If you need further help, consult the installation documentation.

Testing your Anaconda installation

Before closing Anaconda you should check that it is working correctly. After following the steps above, you should have a web browser window with the Jupyter logo and a list of the folders in your home directory, which is typically C:\users\<your username> on Windows, and /Users/<your username> on a Mac.

  1. Within the web browser window, navigate to a folder of your choice (e.g. ‘Documents’) and create there a new folder for this course, by clicking on ‘New’ and then ‘Folder’ on the right side of the window. The new folder should not be on an external or virtual drive as Jupyter might not be able to find it later.
  2. Click the checkbox next to the new folder, click ‘Rename’ and give the folder an appropriate name, e.g. ‘Learn to Code’. Then click on the new folder name to go into that folder.
  3. Download this test notebook to the newly created folder. Do not attempt to open the file, e.g. by double-clicking it. If the file hasn’t the .ipynb extension, click on the checkbox and the ‘Rename’ button to give it the correct extension.
  4. In the Jupyter web browser window, click on the test notebook to open it and follow the instructions in the notebook.
  5. After closing the notebook, close the Jupyter web browser window and finally close the terminal window.

The following video illustrates the above steps on a Mac.


Known issues

  1. When you open a notebook you might see an error ‘Failed to retrieve MathJax from ‘’’, you should close the notebook, connect to the internet then reopen the notebook.

If you have followed the instructions for your operating system and are still having problems installing try this support forum.




Become an OU student

Share this free course

Copyright information

For further information, take a look at our frequently asked questions which may give you the support you need.

Have a question?