Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Rename to NotebookApp
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Jan 18, 2022
1 parent 554f713 commit 7313c6e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions notebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ def get(self, path=None):

aliases = dict(base_aliases)
aliases.update({
"retro-logo": "NotebookApp.retro_logo"
"retro-logo": "RetroApp.retro_logo"
})


class NotebookApp(LabServerApp):
name = "retro"
class RetroApp(LabServerApp):
name = "notebook"
app_name = "Jupyter Notebook"
description = "Jupyter Notebook - A web-based notebook environment for interactive computing"
version = version
Expand Down Expand Up @@ -205,15 +205,15 @@ class NotebookApp(LabServerApp):

flags = flags
flags['expose-app-in-browser'] = (
{'NotebookApp': {'expose_app_in_browser': True}},
{'RetroApp': {'expose_app_in_browser': True}},
"Expose the global app instance to browser via window.jupyterlab."
)
flags["collaborative"] = (
{"NotebookApp": {"collaborative": True}},
{"RetroApp": {"collaborative": True}},
"Whether to enable collaborative mode.",
)
flags["retro-logo"] = (
{"NotebookApp": {"retro_logo": True}},
{"RetroApp": {"retro_logo": True}},
"Whether to use the Jupyter Notebook inline logo",
)

Expand Down Expand Up @@ -248,7 +248,7 @@ def initialize(self, argv=None):
super().initialize()


main = launch_new_instance = NotebookApp.launch_instance
main = launch_new_instance = RetroApp.launch_instance

if __name__ == "__main__":
main()

0 comments on commit 7313c6e

Please sign in to comment.