Module: Ipynb2web:browser

The entry point for the Browser version of ipynb2web.

Import: Script Tag

<script src="https://cdn.jsdelivr.net/ipynb2web@latest/dist/ipynb2web.browser.umd.js"></script>

Import: As Module

import ipynb2web from 'https://cdn.jsdelivr.net/npm/ipynb2web@latest/dist/ipynb2web.browser.mjs';

Usage:

const prepairedJsonAsset = ipynb2web.nb2json(url)

Returns:

{ meta: { ... }, content: "...", assets: [], diagnostics: [] }

When ipynb2web is used in the browser environment, it assigns the 'ipynb2web' object to the global 'window' object.

It exposes nb2json (fetch and render) and renderNotebook (render parsed JSON).

Author:
  • Charles Karpati
Source:

Members

(static, constant) ipynb2web :Object

ipynb2web's Browser implementation. This is not the same as the Node or the CLI implementation.

Type:
  • Object
Properties:
Name Type Description
nb2json function

Calls convert.nb2json to convert Jupyter Notebook to JSON.

Source: