METADATA 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Metadata-Version: 2.1
  2. Name: notebook_shim
  3. Version: 0.2.4
  4. Summary: A shim layer for notebook traits and config
  5. Author-email: Jupyter Development Team <jupyter@googlegroups.com>
  6. License: BSD 3-Clause License
  7. Copyright (c) 2022 Project Jupyter Contributors
  8. All rights reserved.
  9. Redistribution and use in source and binary forms, with or without
  10. modification, are permitted provided that the following conditions are met:
  11. 1. Redistributions of source code must retain the above copyright notice, this
  12. list of conditions and the following disclaimer.
  13. 2. Redistributions in binary form must reproduce the above copyright notice,
  14. this list of conditions and the following disclaimer in the documentation
  15. and/or other materials provided with the distribution.
  16. 3. Neither the name of the copyright holder nor the names of its
  17. contributors may be used to endorse or promote products derived from
  18. this software without specific prior written permission.
  19. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  22. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  23. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  25. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  26. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  27. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. License-File: LICENSE
  30. Keywords: ipython,jupyter
  31. Classifier: Framework :: Jupyter
  32. Classifier: Intended Audience :: Developers
  33. Classifier: Intended Audience :: Science/Research
  34. Classifier: Intended Audience :: System Administrators
  35. Classifier: License :: OSI Approved :: BSD License
  36. Classifier: Programming Language :: Python
  37. Classifier: Programming Language :: Python :: 3
  38. Classifier: Programming Language :: Python :: 3 :: Only
  39. Classifier: Programming Language :: Python :: 3.7
  40. Classifier: Programming Language :: Python :: 3.8
  41. Classifier: Programming Language :: Python :: 3.9
  42. Classifier: Programming Language :: Python :: 3.10
  43. Requires-Python: >=3.7
  44. Requires-Dist: jupyter-server<3,>=1.8
  45. Provides-Extra: test
  46. Requires-Dist: pytest; extra == 'test'
  47. Requires-Dist: pytest-console-scripts; extra == 'test'
  48. Requires-Dist: pytest-jupyter; extra == 'test'
  49. Requires-Dist: pytest-tornasync; extra == 'test'
  50. Description-Content-Type: text/markdown
  51. # Notebook Shim
  52. This project provides a way for JupyterLab and other frontends to switch to [Jupyter Server](https://github.com/jupyter/jupyter_server/) for their Python Web application backend.
  53. ## Basic Usage
  54. Install from PyPI:
  55. ```
  56. pip install notebook_shim
  57. ```
  58. This will automatically enable the extension in Jupyter Server.
  59. ## Usage
  60. This project also includes an API for shimming traits that moved from `NotebookApp` in to `ServerApp` in Jupyter Server. This can be used by applications that subclassed `NotebookApp` to leverage the Python server backend of Jupyter Notebooks. Such extensions should *now* switch to `ExtensionApp` API in Jupyter Server and add `NotebookConfigShimMixin` in their inheritance list to properly handle moved traits.
  61. For example, an application class that previously looked like:
  62. ```python
  63. from notebook.notebookapp import NotebookApp
  64. class MyApplication(NotebookApp):
  65. ```
  66. should switch to look something like:
  67. ```python
  68. from jupyter_server.extension.application import ExtensionApp
  69. from notebook_shim.shim import NotebookConfigShimMixin
  70. class MyApplication(NotebookConfigShimMixin, ExtensionApp):
  71. ```