jupyter_server_test_config.py 439 B

1234567891011121314151617
  1. import getpass
  2. from tempfile import mkdtemp
  3. # Test if we are running in a docker
  4. if getpass.getuser() == "jovyan":
  5. c.ServerApp.ip = "0.0.0.0"
  6. c.ServerApp.port = 8888
  7. c.ServerApp.port_retries = 0
  8. c.ServerApp.open_browser = False
  9. c.LabApp.dev_mode = True
  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