module ipythonhelper.nbcanvas

Short summary

module code_beatrix.ipythonhelper.nbcanvas

Drawing from a canvas

source on GitHub

Functions

function

truncated documentation

display_canvas_point

Adds a canvas to draw from a notebook, the code use javascript.

Documentation

Drawing from a canvas

source on GitHub

code_beatrix.ipythonhelper.nbcanvas.display_canvas_point(html_id, width=800, heigth=400, var_name='points')[source]

Adds a canvas to draw from a notebook, the code use javascript.

Paramètres
  • height – height

  • width – width

  • html_id – the function adds a div section, it should be different for every canevas

  • var_name – the function adds this variable to the kernel workspace

Renvoie

the list of points

source on GitHub