Python/Jupyter Notebook

From Ever changing code
Jump to navigation Jump to search


There is a many methods to get Jupyter Notebook. Below my preferred option to run in Vagrant.


git clone
cd vagrant-jupyther-box
vagrant up
firefox http://localhost:8888

Run turtle graphics in Jupyter Notebook

The turtle module, which allows you to create images using turtle graphics. Follow steps below to enable running in JN:

Option 1

git clone
cd mobilechelonian/
pip install -e .
>>> Successfully installed mobilechelonian

Example Turtle code

from mobilechelonian import Turtle
t = Turtle()

Option2 - hasn't worked

# Prep
$ pip install ipyturtle
$ jupyter nbextension enable --py --sys-prefix ipyturtle

# Project
$ git clone
$ cd ipython-turtle-widget
$ sudo apt install npm
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix ipyturtle
$ jupyter nbextension enable --py --sys-prefix ipyturtle

You can see now the sketch right below the cell.