__init__.py 765 B

1234567891011121314151617181920212223242526
  1. """Interactive widgets for the Jupyter notebook.
  2. Provide simple interactive controls in the notebook.
  3. Each widget corresponds to an object in Python and Javascript,
  4. with controls on the page.
  5. You can display widgets with IPython's display machinery::
  6. from ipywidgets import IntSlider
  7. from IPython.display import display
  8. slider = IntSlider(min=1, max=10)
  9. display(slider)
  10. Moving the slider will change the value. Most widgets have a current value,
  11. accessible as a `value` attribute.
  12. """
  13. from ._version import __version__
  14. from warnings import warn
  15. def _jupyter_nbextension_paths():
  16. return [{
  17. 'section': 'notebook',
  18. 'src': 'static',
  19. 'dest': 'jupyter-js-widgets',
  20. 'require': 'jupyter-js-widgets/extension'
  21. }]