dearbharat
dearbharat

Reputation: 111

Make turtle graphics inline

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

Answers (3)

William
William

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

Denzel Akwanie
Denzel Akwanie

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

marco
marco

Reputation: 580

I found the following library that has a Turtle implementation working in Jupyter notebooks: https://github.com/takluyver/mobilechelonian

Upvotes: 3

Related Questions