GithubHelp home page GithubHelp logo

Comments (2)

rlafuente avatar rlafuente commented on June 26, 2024

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.

stuaxo avatar stuaxo commented on June 26, 2024

Yeah it probably needs it's own issue on shoebot.

It's blocked on this shoebot/shoebot#322

from jupyter-shoebot.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.