labapp.py 636 B

12345678910111213141516171819202122
  1. # coding: utf-8
  2. """A tornado based Jupyter lab server."""
  3. # Copyright (c) Jupyter Development Team.
  4. # Distributed under the terms of the Modified BSD License.
  5. # TODO: import base server app
  6. from notebook.notebookapp import NotebookApp
  7. from traitlets import Unicode
  8. class LabApp(NotebookApp):
  9. default_url = Unicode('/lab', config=True,
  10. help="The default URL to redirect to from `/`"
  11. )
  12. #-----------------------------------------------------------------------------
  13. # Main entry point
  14. #-----------------------------------------------------------------------------
  15. main = launch_new_instance = LabApp.launch_instance