How to add turtle module to Pyodide?

668 views Asked by At

I tried using turtle functions in web(pyodide) it was not working then i saw that they have removed some inbuilt module from pyodide turtle is one of it.I want turtle to work on web how can i ?

1

There are 1 answers

0
rth On

The native tutle module from stdlib is based on tkinter which Pyodide doesn't support.

However, there is a turtle re-implementation for Brython which was adapted for Pyodide in the Basthon project here.

You can ask maintainers to release it as a wheel so that it could be installed with micropip (or create a wheel out if it yourself).