0.1.1 • Published 5 years ago

@sbrunk/jupyterlab-xkcd-scalajs v0.1.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
5 years ago

JupyterLab xkcd-extension ported to Scala.js

Show a random xkcd.com comic in a JupyterLab panel

A port of the JupyterLab example xkcd-extension that is used in the extension tutorial to Scala.js.

Uses JupyterLab typings from ScalablyTyped.

Prerequisites

  • JupyterLab

Installation

jupyter labextension install @sbrunk/jupyterlab-xkcd-scalajs

Development

For a development install (requires npm version 4 or later), do the following in the repository directory:

npm install
jupyter labextension link .

To rebuild the JupyterLab app:

jupyter lab build

For a fast dev cycle run sbt in watch mode in one terminal:

sbt ~fastOptJS

And jupyter lab also in watch mode in another terminal

jupyter lab --watch

That should trigger jupyter lab to pick up any changed JS output and use it after the next browser refresh.