New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting jupyterlab? #14
Comments
I think some work would need to be done to get this working in JupyterLab (it'd need to be a Lab extension instead of a Notebook extension). However I think this would be valuable work to be done - JupyterLab would be great since you could have the turtle in one window pane and the code in another |
In my Jupyterlab I do not see any errors but also no graphics output.
|
JupyterLab Extensions: https://jupyterlab.readthedocs.io/en/stable/user/extensions.html JupyterLab Extension Guide: https://jupyterlab.readthedocs.io/en/stable/developer/extension_dev.html |
It could be easiest to reimplement the drawing using ipycanvas. For a proof of concept see https://github.com/uh-comp-methods1/intro/blob/main/kilpikonna.py and the associated notebook https://github.com/uh-comp-methods1/intro/blob/main/turtle_graphics.ipynb. My quick and dirty solution uses NumPy and it implements just right, left, forward and backward. |
I'm curious if anyone has gotten this to work using JupyterLab rather than e.g. jupyter notebooks.
I'm installing it using
cd /opt && \
git clone https://github.com/dirkcgrunwald/mobilechelonian.git && \
cd mobilechelonian && \
python setup.py install
in my setup (docker / zero2jupyterlab setup).
When running the example I get "Error creating widget: could not find model" which appears to mean I haven't done a "jupyter labextension install" -- but even if I do that, doesn't work.
Not certain what Fine Manual to read to offer a patch since i haven't authored ipywidgets or jupyterlab widgets before.
The text was updated successfully, but these errors were encountered: