Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
jupyter_singleton-0.0.1-py3-none-any.whl (9.0 kB) Copy SHA256 hash SHA256 Wheel py3
jupyter_singleton-0.0.1.tar.gz (6.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page