Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download

Jupyter notebook Learn_to_code_test_notebook.ipynb

Views: 141
Kernel: Python 3 (Ubuntu Linux)

Software installation test

This Jupyter notebook is for The Open University's Learn to code for data analysis course.

It checks whether your software installation is working as expected.

To do that, in the menu above this, click on 'Cell' and then on 'Run all'. This will execute the code below. (The code will be explained in the course.)

After a while you should see some text stating which version of pandas (the data analysis software we will be using) you have installed, and a graph with two dots plotted on it.

Anaconda

If you're using Anaconda, if the pandas version displayed is 0.16.2 and you don't get any error messages, then all's well and you can close this notebook (menu 'File', option 'Close and Halt') and then delete the notebook from your disk.

If there is an error message saying you don't have Python 3, or if the pandas version displayed is not 0.16.2, then one of the following has probably happened:

  • you installed the wrong version of Anaconda;

  • you installed the wrong variant of Anaconda (there are two variants, for Python 2 and Python 3, of the same version of Anaconda);

  • during the installation you decided to keep your existing Python installation.

To see which software versions you have installed, click on the 'Help' menu above, and then on the 'About' option. You should have Python version 3.4.3, Anaconda version 2.3.0 and IPython (also known as Jupyter) notebooks version 3.2.0.

SageMathCloud

If you're using SageMathCloud, if the pandas version is 0.15 or higher, and if there are no error messages, then all's well and you can close this notebook (click x on the tab at the top) and delete it from your project.

If you get an error that you don't have Python 3, then click on the 'Kernel' menu above, select the 'Change kernel' option, and finally select 'Python 3' towards the bottom of the menu. You will see some messages on the top right side whilst the kernel (the software that runs the notebook) is being changed. Once the messages disappear, you can click again on 'Run all' in the 'Cell' menu.

Help

If you don't get this notebook to work, make a note of which versions you have ('Help' menu, option 'About'), which web browser and operating system version you are using (e.g. Edge on Windows 10, Safari on OSX El Capitan), and ask for help on the installation instruction page or in the course discussion forum.

deathsINBrazil
import warnings warnings.simplefilter('ignore', FutureWarning) from pandas import * print('Your pandas version is', pandas.__version__) if 1 / 2 == 0: print('Error: you are not running Python 3') df = DataFrame(data=[[1,2], [2,1]], columns=['x','y']) %matplotlib inline df.plot('x', 'y', kind='scatter') from scipy.stats import spearmanr from pandas.io.wb import download
Your pandas version is 0.15.0
Image in a Jupyter notebook