-
Notifications
You must be signed in to change notification settings - Fork 294
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
Turtle widgets support is just not workin ... and always giving error of "error loading nbextensions/mobilecheloninjs/turtlewidget" #8241
Comments
you can check the code also if it is wrong tell me ... and ... also tell be briefly why turtle is working out of the box in this case like annaconda jupyter ........ |
I've had a look at the code, and looks like the widget is written in such a way that it will only work on Jupyter. define(['nbextensions/mobilechelonianjs/paper', "@jupyter-widgets/base"], function(paperlib, widget){ We could probably try to pre-emptively register all of these. @arpan02122004 , Unfortunately for now I cannot find a workaround for this issue, I'll take a look at this. |
what is the root cause of this ..... anything can be done to fix this .....? |
The root cause has been clearly documented , in the previous comment.
Unfortunately this issue hasn't been priotized yet, we prioritize issues based on community engagement (upvotes) and usage. |
@arpan02122004 FYI - I've tested this at my end and it works as expected. |
I'm closing this as fixed, as I can no longer repro this and the fix for #10319 should fix this as well. |
The example provided here does not work for me. No output is shown and the jupyter log shows this:
|
This probably has some impact on the issue - I'm using raw kernels. |
Notes:
Heres the source from the widgets pkgdir = os.path.dirname(__file__)
nbextensions.install_nbextension(os.path.join(pkgdir, 'mobilechelonianjs'),
user=True)
class Turtle(widgets.DOMWidget):
_view_module = Unicode("nbextensions/mobilechelonianjs/turtlewidget").tag(sync=True)
_view_name = Unicode('TurtleView').tag(sync=True) |
Environment data
Expected behaviour
it should show the turtle widget and start plotting and show the diagram....
Actual behaviour
it just do not show the widget of turtle and gice eroor of attribule eroor in "t.pensize" which is valid and shows widget to download support file but in the final it does nothing . and give more errors
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
from ipywidgets import interact
import turtle
t = Turtle()
t.pencolor("red")
turtle.begin_fill()
t.pensize(3)
t.left(50)
t.forward(113)
t.circle(50,200)
t.right(140)
t.circle(50,200)
t.forward(133)
turtle.end_fill()
input()
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)"Eroor given by jupyter :- "
AttributeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_1972/308323382.py in
5 t.pencolor("red")
6 turtle.begin_fill()
----> 7 t.pensize(3)
8 t.left(50)
9 t.forward(113)
AttributeError: 'Turtle' object has no attribute 'pensize'
The text was updated successfully, but these errors were encountered: