-
Notifications
You must be signed in to change notification settings - Fork 4
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
cannot import processing or turtle (possibly issue #3 redux) #5
Comments
I'll have to dig into why the notebook on jupyter.cs.brynmawr.edu works... must be some differences there. Thanks for reporting! |
Hi, Doug. I'm up at Jupyter days in Boston. Seems like a way around the differences There's also www.mybinder.org, but I believe Docker is more appropriate Could that be a plan for now? I'm eager to use your Skulpt kernel. It Thanks, ms On Thu, Mar 10, 2016 at 9:19 PM, Doug Blank [email protected]
|
@p5k12 Cool... wish I were there! Yes, docker (and mybinder) are very easy to set up. I'm tying to find the version I made that notebook with... |
I wish you were here, too. I kept scanning the room today thinking you would be!
|
So, this seems to work for me: from processing import *
def setup():
size(400,400)
noStroke()
smooth()
noLoop()
def draw():
drawCircle(200,170,6)
def drawCircle(x, radius, level):
tt = 128.0 * level / 4.0
fill(tt)
ellipse(x, 200, radius*2, radius*2)
if level > 1:
level = level - 1
drawCircle(x - radius / 2, radius/2, level)
drawCircle(x + radius / 2, radius/2, level)
run() But I am getting an error importing turtle... |
What is your result of this: python3 -c "import skulpt_python; print(skulpt_python.__version__)" |
Oh, I see you are using Python2... maybe there is an issue there... |
Ah, yes... this is a Python2 issue. Looks like there may be code in the skulpt_python/kernel.py that is Python3 specific. Let me take a look... |
No, that wasn't it... I think it is not finding this file: http://localhost:8888/notebooks/processing/**init**.js |
I think I need to rebuild skulpt with the processing |
pip install --upgrade skulpt_python
as revised at close of issue Installation problem - version requirement #3import turtle
triggers the errorExternalError: TypeError: target is null on line 1
andimport processing
triggers the error messageImportError: Failed to load remote module 'processing' on line 1
python setup.py install
, but that didn't make any differenceAgain, I'm on:
Windows 8.1 Enterprise
Notebook server 4.1.0
Python 2.7.11
Anaconda 2.5.0 (64-bit)
I believe I already have Metakernel, and Calysto installed via pip.
Thanks again!
The text was updated successfully, but these errors were encountered: