gitbook-plugin-nbinteract

0.1.8 • Public • Published

gitbook-plugin-nbinteract

This package contains the Gitbook plugin for nbinteract.

Usage

Add "nbinteract" to the plugins in your book.json:

{
  "plugins": ["nbinteract"],
  "pluginsConfig": {
    "nbinteract": {
      // Optional parameters. For example:
      //
      // "auto_run": false
    }
  }
}

Configure the plugin using the following parameters:

{
  "spec": {
    "type": "String",
    "description": [
      "Spec for the BinderHub image. Must be in the format ",
      "${username}/${repo}/${branch}. By default uses the nbinteract ",
      "image."
    ],
    "default": "SamLau95/nbinteract-image/master"
  },
  "provider": {
    "type": "String",
    "description": [
      "Provider for the BinderHub image. ",
      "By default uses Github."
    ],
    "default": "gh"
  },
  "auto_run": {
    "type": "bool",
    "description": [
      "If true (default), automatically starts kernel and runs code when ",
      "page with widgets is loaded. If false, will look for a DOM ",
      "element with id nbinteract and attach a click handler to run."
    ],
    "default": true
  }
}

Package Sidebar

Install

npm i gitbook-plugin-nbinteract

Weekly Downloads

0

Version

0.1.8

License

BSD-3-Clause

Unpacked Size

10.6 MB

Total Files

6

Last publish

Collaborators

  • samlau95