Url creation/opening (handler)#

Classes:

JupyterUrlHandler(root, host, port, ...)

Class to create and open urls for use with jupyter notebook server.

Functions:

open_urls(urls[, new, autoraise])

Open urls.

class open_notebook.handler.JupyterUrlHandler(root: str | Path, host: str, port: str, dir_prefix: str, file_prefix: str) None[source]#

Bases: object

Class to create and open urls for use with jupyter notebook server.

Methods:

paths_to_urls(paths[, suffix])

Convert paths to urls.

open_paths(paths[, suffix, new, autoraise])

Open paths as urls.

paths_to_urls(paths: Path | str | Iterable[str | Path], suffix: str | None = None) list[str][source]#

Convert paths to urls.

open_paths(paths: Path | str | Iterable[str | Path], suffix: str | None = None, new: int = 0, autoraise: bool = True) None[source]#

Open paths as urls.

open_notebook.handler.open_urls(urls: str | Iterable[str], new: int = 0, autoraise: bool = True) None[source]#

Open urls.