Skip to content
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

Open
dirkcgrunwald opened this issue Aug 21, 2018 · 4 comments
Open

Supporting jupyterlab? #14

dirkcgrunwald opened this issue Aug 21, 2018 · 4 comments

Comments

@dirkcgrunwald
Copy link

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.

@choldgraf
Copy link
Collaborator

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

@zioalex
Copy link

zioalex commented Aug 25, 2018

In my Jupyterlab I do not see any errors but also no graphics output.
Only:

Turtle()
Turtle()
Turtle(points=[{'p': 1, 'y': 200, 's': 1, 'x': 200, 'lc': 'black', 'b': 0}])

@westurner
Copy link

@lsoksane
Copy link

lsoksane commented Mar 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants