Displaying ipycanvas in google colab?
See original GitHub issueHello! I’m preparing a tutorial using ipycanvas, and while it works perfectly in my local jupyter installation, I can’t get the same code to display in google colab (for remote students).
I know this is much more likely to be a google colab issue than a ipycanvas issue, but I was wondering if you know any workarounds from experience?
This is the code that I’m trying to run.
from ipycanvas import Canvas
testipycanvas = Canvas(width = 20, height = 20)
testipycanvas.fill_style = "green"
testipycanvas.fill_rect(0,0,20)
display(testipycanvas)
(I have already !pip install’ed the module with no errors. The code above gives me a blank output with no error messages)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:29 (13 by maintainers)
Top Results From Across the Web
Display Animations in Google Colab - python - Stack Overflow
Here are a couple things I've tried: ipycanvas. This is great in a local Jupyter notebook and is based on HTML5 canvas. It...
Read more >ipycanvas: Interactive Canvas in Jupyter — ipycanvas ...
Try it online#. You can try ipycanvas, without the need of installing anything on your computer, using mybinder by clicking on this badge:....
Read more >Google Colab - IPython.display! - YouTube
Tutorial on using the IPython. display object in Google Colab. IPython. display allows users to embed videos from YouTube and Vimeo into a ......
Read more >ipycanvas: A Python Canvas for Jupyter | by Martin Renou
ipycanvas exposes the Canvas API to IPython, making it possible to draw anything you want on a Jupyter Notebook directly in Python!
Read more >Hi! Thanks for the kind words.. Unfortunately it does ... - Medium
Google Colab lacks support for Interactive Widgets libraries like ipycanvas, you can follow the status of this issue…
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ipycanvas seems to work very nicely with Colab now thanks to @blois 's amazing work!
Also apparently the correct issue on googlecolab about custom widget libraries is now on googlecolab/colabtools#498