shoebot / jupyter-shoebot Goto Github PK
View Code? Open in Web Editor NEWJupyter kernel for running Shoebot scripts
License: GNU General Public License v3.0
Jupyter kernel for running Shoebot scripts
License: GNU General Public License v3.0
Following the docs at https://docs.shoebot.net/advanced.html#running-in-jupyter
jupyter kernelspec install shoebot_kernel --sys-prefix
[Errno 13] Permission denied: '/usr/share/jupyter'
Perhaps you want to install with `sudo` or `--user`?
then with sudo
Traceback (most recent call last):
File "/home/villares/.local/bin/jupyter", line 5, in <module>
from jupyter_core.command import main
ModuleNotFoundError: No module named 'jupyter_core'
I'm running on a conda environment
Allison Parrish has been teaching using Flat + a helper library she made called Bezmerizing
https://github.com/aparrish/bezmerizing/blob/master/demo.ipynb
She can lauch a Binder that installs the environment: https://mybinder.org/v2/gh/aparrish/material-of-language/master
[Updated the link, this is the right repo]
That would be amazing if we could do that with shoebot, for teaching...
print()
doesn't show output below.
This should be handled inside kernel.py
, but I'm not sure how to access the Bot's stdout from inside the kernel.
(Possibly locally too).
Running the cells resulted in no output.
This needs some CI, so we know that it still works.
It could probably do with being linked from shoebot proper (have to admit I forgot that this is a thing, and it would have been handy for test).
Which means the install instructions don't really work :(
Figure out why the install command does not install the kernel properly.
Right now it's using the default values from the example kernel in the Jupyter docs.
See here for reference
See the R kernel to see how they do the icon
Some of the notebooks use import cairocffi as cairo
they can just use import cairo
to make it clear what the extension does
If we can, we should follow processings example and launch into an example
Right now we have
Traceback (most recent call last):
File "shoebot_kernel/kernel.py", line 36, in do_execute
bot.run(code, break_on_error=True)
File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/grammar.py", line 240, in run
self._run_frame(executor, limit=frame_limiter, iteration=iteration)
File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/grammar.py", line 148, in _run_frame
executor.run()
File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/livecode.py", line 115, in run
self.do_exec(self.known_good, self.ns)
File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/livecode.py", line 82, in do_exec
exec source in ns
File "<string>", line 8, in <module>
NameError: name 'red' is not defined
Only the last 2 lines are relevant, and we're also missing context to make it clear which line is problematic.
I think the default setup that jupyter-pip suggests doesn't work (jupyter-cairo is also broken).
pip doesn't provide a stable api, so I guess it's not too surprising the pip.main
doesn't work... have a vague memory of looking at it and thinking ๐ค in jupyter-cairo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.