Skip to content

sbrunk/jupyterlab-xkcd-scalajs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Type xkcd in the JupyterLab command palette to open the comic tab.

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.

About

Random xkcd comic in a JupyterLab panel - Scala.js port

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published