module faq.faq_jupyter_helper#

Short summary#

module ensae_teaching_cs.faq.faq_jupyter_helper

Helpers for jupyter, inspired from nbopen.py

source on GitHub

Functions#

function

truncated documentation

find_best_server

Finds existing running server.

nb_open

Opens a notebook with an existing server, if no server can be found, it starts a new one (and the function runs …

Documentation#

Helpers for jupyter, inspired from nbopen.py

source on GitHub

ensae_teaching_cs.faq.faq_jupyter_helper.find_best_server(filename, profile='default')#

Finds existing running server.

Paramètres:
  • filename – notebook

  • profile – profile to use

Renvoie:

a running server or None if not found

source on GitHub

ensae_teaching_cs.faq.faq_jupyter_helper.nb_open(filename, profile='default', open_browser=True, fLOG=<function fLOG>)#

Opens a notebook with an existing server, if no server can be found, it starts a new one (and the function runs until the server is closed).

Paramètres:
  • filename – notebook

  • profile – profile to use

  • open_browser – open browser or not

  • fLOG – logging function

Renvoie:

a running server or None if not found

source on GitHub