Interactive Canvas in Jupyter
-
Updated
Jul 21, 2022 - Python
The Canvas API provides a means for drawing graphics via JavaScript and the HTML canvas element. Among other things, it can be used for animation, game graphics, data visualization, photo manipulation, and real-time video processing.
Currently, if we want to add command history, or any sort of cache that persists longer than a session, we would need to choose more arbitrary files / locations to put them in. Instead, let's start by making this a configurable directory.
Check for an environment variable called
CLANVASHOME, if it is set, then use that value.Otherwise / by default set this value to a
.clanvasfolder in