run-test.py 665 B

123456789101112131415161718192021222324252627282930
  1. # Copyright (c) Jupyter Development Team.
  2. # Distributed under the terms of the Modified BSD License.
  3. import os
  4. from jupyterlab.tests.test_app import JestApp
  5. HERE = os.path.realpath(os.path.dirname(__file__))
  6. def run(jest_dir):
  7. jest_app = JestApp.instance()
  8. jest_app.jest_dir = jest_dir
  9. jest_app.initialize()
  10. jest_app.install_kernel(
  11. kernel_name='xpython',
  12. kernel_spec={
  13. 'argv': [
  14. 'xpython',
  15. '-f', '{connection_file}'
  16. ],
  17. 'display_name': 'xpython',
  18. 'language': 'python'
  19. }
  20. )
  21. jest_app.start()
  22. if __name__ == '__main__':
  23. run(HERE)