question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can’t get any output. For example, this piece of code:

from ipycanvas import Canvas

canvas = Canvas(width=200, height=200)
canvas.fill_rect(25, 25, 100, 100)
canvas.clear_rect(45, 45, 60, 60)
canvas.stroke_rect(50, 50, 50, 50)
canvas

the only output I’m getting is:

Canvas(height=200, width=200)

I’m running than on MacOS, with brewed Python 3.7 and latest Jupyter. All installed according to the book, without Anaconda. No errors thrown, nothing to debug. All modules present, node v13, all are there waiting. Tested on multiple browsers too (Safari, Chrome, Firefox).

I’m totally clueless. I’m new in the game, so maybe I’m doing a trivial error, but Google can’t help me.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
martinRenoucommented, Sep 6, 2020

Try running:

jupyter nbextension install --py --symlink --sys-prefix ipycanvas
jupyter nbextension enable --py --sys-prefix ipycanvas

This should not actually be needed. But it might fix your issue.

1reaction
martinRenoucommented, Apr 2, 2020

Happy to hear that it works! Don’t hesitate to open other issues if you have any questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Graphics Canvas element - HTML - MDN Web Docs
Lets the canvas know whether translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized.
Read more >
No output in canvas when integrating Shadertoy
Your camera should be at camera.position.z = 1000; and. Your loop code should be: var loop = function loop() { requestAnimationFrame(loop); ...
Read more >
How do I export a Canvas course? - Instructure Community
Notes: Canvas exports do not include backups of student interactions and grades. Grades can be exported separately as a comma separated values (CSV)...
Read more >
HTML Canvas Reference - W3Schools
The HTML <canvas> tag is used to draw graphics, on the fly, via scripting ... moveTo(), Moves the path to the specified point...
Read more >
Output is not working as I'd expect · Issue #142 - GitHub
canvas -sketch sketch.js --output=output/ CANVAS_SKETCH_OUTPUT=./outputs canvas-sketch sketch.js. Code: the sketch canvas-sketch-cli auto ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found