Skip to content

Commit

Permalink
reuse upstream config
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Sep 15, 2023
1 parent 5642842 commit b27c148
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions ui-tests/test/jupyter_server_config.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
from pathlib import Path
from tempfile import mkdtemp
from typing import Any

import jupyterlab
from jupyterlab.galata import configure_jupyter_server

c: Any
c.ServerApp.port = 8888
c.ServerApp.port_retries = 0
c.ServerApp.open_browser = False

c.ServerApp.root_dir = mkdtemp(prefix="galata-test-")
c.ServerApp.token = ""
c.ServerApp.password = ""
c.ServerApp.disable_check_xsrf = True

c.JupyterNotebookApp.expose_app_in_browser = True
c.LabServerApp.extra_labextensions_path = str(Path(jupyterlab.__file__).parent / "galata")

configure_jupyter_server(c)

0 comments on commit b27c148

Please sign in to comment.