This repository contains some experiments and notes on canvas drawing within JupyterLab.
- solar-system playbook
A nice Python coding post here describes a really neat little implementation of a solar system simulation built from first principles. The system described works in standalone mode using
matplotlib
as a canvas. This notebook tries to interleave an explanatoin with a version of the code that runs as a basic animation using ajuptyer-matplotlib
canvas class. The implementation opens the possibility of implementations targetting other environments. Note that%matplotlib widget
(akaipympl
or interactive widget) support doesn't seem to be working properly in the local setup so this notebook is leveraging%matplotlib inline
support via aJupyterMatplotlibCanvas
which is not interactive. - ipycanvas playbook contains some simple code examples leveraging ipycanvas which is an interactive widget built on top of
ipympl
. It can be leveraged along with other interactive widgets such asButton
. It doesn't appear to support 3d at the moment.