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)

Bases : 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_()
class code_beatrix.jsscripts.nbsnap.RenderSnapRaw(width='1000', height='600', divid=None, filename=None)

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)

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()

Return a couple (HTML, JS).

source on GitHub