Reputation: 111
I have been using turtle package in python idle. Now I have switched to using Jupyter notebook. How can I make turtle inline instead of opening a separate graphic screen. I am totally clueless about. Any pointers and advice will be highly appreciated.
Upvotes: 10
Views: 15113
Reputation: 486
With python3.6+:
python -m pip install ipyturtle3
Try the examples listed in this repo: https://github.com/williamnavaraj/ipyturtle3
https://pypi.org/project/ipyturtle3/
I found this to work in JupyterLab and VSCode
Upvotes: 3
Reputation: 32
I am a windows user, so run the CMD as an administrator and run this:
jupyter nbextension enable --py --sys-prefix ipyturtle
Run the above after installing the ipyturtle
pip3 install ipyturtle
Upvotes: 1
Reputation: 580
I found the following library that has a Turtle implementation working in Jupyter notebooks: https://github.com/takluyver/mobilechelonian
Upvotes: 3