Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.display import HTML, Image | |
from google.colab.output import eval_js | |
from base64 import b64decode | |
canvas_html = """ | |
<canvas width=%d height=%d style="border:1px solid #000000;"></canvas> | |
<button id="finish-button">Finish</button> | |
<button id="clear-button">Clear</button> | |
<script> | |
var canvas = document.querySelector('canvas') |