Skip to content

Caltech-IPAC/firefly_widgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cc2a299 · May 24, 2019

History

32 Commits
Dec 19, 2017
Dec 19, 2017
Dec 19, 2017
Aug 1, 2016
Aug 1, 2016
Aug 1, 2016
May 24, 2019
Aug 1, 2016
Aug 1, 2016
Nov 16, 2017

Repository files navigation

firefly_widgets

Firefly Components as Jupyter Widgets

Note: this repository contains experimental widgets for Jupyter notebook. This code is no longer maintained and is superceded by https://github.com/Caltech-IPAC/jupyter_firefly_extensions which works with Jupyterlab.

Installation

To install using pip (preferably after dependencies are installed with conda):

$ pip install firefly_widgets
$ jupyter nbextension enable --py --sys-prefix firefly_widgets

For a development installation (requires npm),

$ git clone https://github.com/Caltech-IPAC/firefly_widgets.git
$ cd firefly_widgets
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix firefly_widgets
$ jupyter nbextension enable --py --sys-prefix firefly_widgets
$ cd js
$ npm install

When using the widgets, if a warning about missing widgetsnbextension appears, follow the instructions in the warning to install it. Installed nbextensions can be listed with:

$ jupyter nbextension list

For further development:

  • Javascript side:
    • edit source in js/src
    • npm install in js/
  • Python side:
    • edit source

To remove these widgets:

$ jupyter nbextension disable --py --sys-prefix firefly_widgets
$ jupyter nbextension uninstall --py --sys-prefix firefly_widgets