Skip to main content

jupyter notebook wrapper for making output cells available outside of notebook

Project description

jupyter-singleton

Introduction

jupyter-singleton is a wrapper for the jupyter notebook that allows using output cells from outside of the jupyter notebook environment. Thus it enables you to use ipywidgets and Grammar of Graphics packages whilst programming in your favorite IDE.

Usage

import ipywidgets as widgets

from IPython.display import display
from jupyter_singleton.launcher import launch


def test_fun(open_singleton):
    open_singleton()
    print('this will be shown in browser window')
    label = widgets.Label(value='this too')
    display(label)

    open_singleton()
    print('this will be shown in another browser window')


if __name__ == '__main__':
    launch(test_fun)

    # this will never be reached unless jupyter client gets killed

Dependency

  • notebook (version >= 5.7.8)

Installation

$ pip install jupyter-singleton

License

This software is licensed under the MIT license. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jupyter-singleton, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size jupyter_singleton-0.0.1-py3-none-any.whl (9.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jupyter_singleton-0.0.1.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page