Metadata-Version: 2.1
Name: jupyter-singleton
Version: 0.0.1
Summary: jupyter notebook wrapper for making output cells available outside of notebook
Home-page: https://github.com/EricMende/jupyter_singleton
Author: Eric Mende
Author-email: em@bc-potsdam.de
License: MIT License
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: notebook (>=5.7.8)

# 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](LICENSE) file
for details.


