A tutorial showing how to set up a Docker container running JupyterLab with a Ruby kernel and ruby-libgd for scientific plotting. Covers building the Dockerfile, fixing a pkg-config issue for libgd on Debian, implementing a SafeMath expression evaluator as a safer alternative to Dentaku, and a Plot class supporting both explicit (y=f(x)) and implicit (f(x,y)=0) curve rendering. Includes four example notebooks covering trigonometric functions, logarithms, polynomials, and implicit curves like circles and ellipses. A standalone gem is planned with axis labels, legends, and parametric curve support.
Table of contents
The Envy We Never Talked AboutBuilding the ContainerThe SafeMath EvaluatorThe Plot ClassExample NotebooksNotebook 2 — Logarithms and rootsNotebook 4 — Implicit curves: circles and ellipsesWhat Is Coming NextClosing ThoughtsSort: