Comments (2)
With this change there are no more ImportErrors, but when running other bits of code, this chokes on the bot.show()
call:
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-3-957b8292ff5e> in <module>
4 bot.fill(0.8)
5 bot.rect(40, 50, 50, 30, .4)
----> 6 bot.show()
~/.virtualenvs/jupytershoebot/lib/python3.9/site-packages/shoebot-1.3.1-py3.9.egg/shoebot/grammar/bot.py in show(self, format, as_data)
398
399 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, self.WIDTH, self.HEIGHT)
--> 400 self.snapshot(surface)
401 surface.write_to_png(b)
402 b.seek(0)
~/.virtualenvs/jupytershoebot/lib/python3.9/site-packages/shoebot-1.3.1-py3.9.egg/shoebot/grammar/bot.py in snapshot(self, target, defer, autonumber)
363 # snapshot to Cairo surface
364 if defer is None:
--> 365 self._canvas.snapshot(target, defer)
366 defer = False
367 ctx = cairo.Context(target)
~/.virtualenvs/jupytershoebot/lib/python3.9/site-packages/shoebot-1.3.1-py3.9.egg/shoebot/core/canvas.py in snapshot(self, target, defer, file_number)
168 self._drawqueue.append(output_func)
169 else:
--> 170 self._drawqueue.append_immediate(output_func)
171
172 def flush(self, frame):
~/.virtualenvs/jupytershoebot/lib/python3.9/site-packages/shoebot-1.3.1-py3.9.egg/shoebot/core/drawqueue.py in append_immediate(self, render_func)
47 this will run the whole queue up to this point
48 """
---> 49 raise NotImplementedError("Not supported in DrawQueue")
50
51 def append(self, render_func):
NotImplementedError: Not supported in DrawQueue
But this is a separate issue i suppose?
from jupyter-shoebot.
Yeah it probably needs it's own issue on shoebot.
It's blocked on this shoebot/shoebot#322
from jupyter-shoebot.
Related Issues (15)
- Add clearer tracebacks HOT 1
- Setup doesn't work HOT 9
- Add postBuild file so this works on mybinder.org HOT 7
- jupyter kernelspec install shoebot_kernel --sys-prefix did not work for me HOT 2
- Doesn't work in binder
- Can binder open with example ?
- Add notebook screenshot to README
- Fill out stubs in the kernel headers
- Apply syntax highlighting and Python indenting to code snippets
- Add Shoebot icon
- Register the package on pip HOT 2
- Use Jupyter widgets to implement live vars HOT 1
- Notebooks only work if placed on the repository root HOT 1
- Stdout isn't shown in the output console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter-shoebot.