jupyter_server_test_config.py 609 B

1234567891011121314151617181920
  1. """Server configuration for integration tests.
  2. !! Never use this configuration in production because it
  3. opens the server to the world and provide access to JupyterLab
  4. JavaScript objects through the global window variable.
  5. """
  6. from tempfile import mkdtemp
  7. c.ServerApp.port = 8888
  8. c.ServerApp.port_retries = 0
  9. c.ServerApp.open_browser = False
  10. c.ServerApp.root_dir = mkdtemp(prefix='galata-test-')
  11. c.ServerApp.token = ""
  12. c.ServerApp.password = ""
  13. c.ServerApp.disable_check_xsrf = True
  14. c.LabApp.expose_app_in_browser = True
  15. # Uncomment to set server log level to debug level
  16. # c.ServerApp.log_level = "DEBUG"