notebook and javascript¶
helpers¶
jyquickhelper.helper_in_notebook.load_extension
(name)
install an extension, checks first it exists, if not displays an exception with the list of them
jyquickhelper.set_notebook_name_theNotebook
(name = ‘theNotebook’, display = True)
This function must be called from the notebook you want to know the name. It relies on a javascript piece of code. It populates the variable
theNotebook
with the notebook name.
jyquickhelper.add_notebook_menu
(menu_id = ‘my_id_menu_nb’, raw = False, format = ‘html’, header = None, first_level = 2, last_level = 4, keep_item = None)
Adds javascript and HTML to the notebook which gathers all in the notebook and builds a menu.
javascript¶
jyquickhelper.RenderJS
(self, script, width = ‘100%’, height = ‘100%’, divid = None, css = None, libs = None, style = None, only_html = False, div_class = None, check_urls = True, local = False)
Renders javascript, only outputs HTML.
jyquickhelper.jspy.render_nb_js.RenderJSObj
(self, script, width = ‘100%’, height = ‘100%’, divid = None, css = None, libs = None, style = None, only_html = False, div_class = None, check_urls = True, local = False)
Renders JS using javascript.