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.

Source Distribution

jupyter_singleton-0.0.1.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

jupyter_singleton-0.0.1-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page