Module: Ipynb2web:browser

The entry point for the Browser version of ipynb2web.

Import: Script Tag

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

Import: As Module

import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js"; 
import ipynb2web from 'https://cdn.jsdelivr.net/npm/ipynb2web@latest/dist/ipynb2web.browser.mjs';

Usage:

const prepairedJsonAsset = ipynb2web.nb2json(url)

Returns:

{ meta: { ... }, content: { ... } } 

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

It exposes the nb2json function and nothing more.

Author:
  • Charles Karpati
Source:

Members

(static, constant) ipynb2web :Object

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

Type:
  • Object
Properties:
Name Type Description
nb2json function

Calls convert.nb2json to convert Jupyter Notebook to JSON.

Source: