Examples¶

  1. Add a Javascript menu to a notebook

  2. Render Javascript in a notebook

  3. Visualize JSON in a notebook.

Add a Javascript menu to a notebook

from jyquickheler import add_menu_notebook
add_menu_notebook()

See Notebook, HTML, SVG, Javascript, JSON.

(original entry : index.rst, line 58)

Render Javascript in a notebook

from jyquickhelper import RenderJS
css = ["https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.21/c3.min.css"]
RenderJS(script, css=css, libs = [
                dict(path="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js",
                     name="d3", exports="d3"),
                dict(path="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.21/c3.min.js",
                     name="c3", exports="c3", deps=["d3"])])

See Javascript library in a notebook: c3 or Javascript library in a notebook: mermaid.

(original entry : index.rst, line 68)

Visualize JSON in a notebook.

from jyquickhelper import JSONJS
JSONJS(dict(name="xavier", city="Paris"), html_only=True, show_to_level=3)

See Show JSON in a notebook.

(original entry : index.rst, line 83)