module jsscripts.nbsnap

Inheritance diagram of code_beatrix.jsscripts.nbsnap

Short summary

module code_beatrix.jsscripts.nbsnap

Snap rendering in a notebook.

source on GitHub

Classes

class

truncated documentation

RenderSnap

Render Snap using javascript, outputs only HTML.

RenderSnapRaw

Renders Snap using javascript.

Methods

method

truncated documentation

__init__

initialize

__init__

initialize

_repr_html_

generate_html

Return a couple (HTML, JS).

generate_html

Return a couple (HTML, JS).

Documentation

Snap rendering in a notebook.

source on GitHub

class code_beatrix.jsscripts.nbsnap.RenderSnap(width='1000', height='600', divid=None, filename=None)[source]

Bases : code_beatrix.jsscripts.nbsnap.RenderSnapRaw

Render Snap using javascript, outputs only HTML.

source on GitHub

initialize

Paramètres
  • width – (str) width

  • height – (str) height

  • divid – (str|None) id of the div

  • filename – (str|None) filename

source on GitHub

_repr_html_()[source]
class code_beatrix.jsscripts.nbsnap.RenderSnapRaw(width='1000', height='600', divid=None, filename=None)[source]

Bases : object

Renders Snap using javascript.

source on GitHub

initialize

Paramètres
  • width – (str) width

  • height – (str) height

  • divid – (str|None) id of the div

  • filename – (str|None) filename

source on GitHub

__init__(width='1000', height='600', divid=None, filename=None)[source]

initialize

Paramètres
  • width – (str) width

  • height – (str) height

  • divid – (str|None) id of the div

  • filename – (str|None) filename

source on GitHub

generate_html()[source]

Return a couple (HTML, JS).

source on GitHub