.gitpod.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. github:
  2. prebuilds:
  3. # enable for the master/default branch (defaults to true)
  4. master: true
  5. # enable for all branches in this repo (defaults to false)
  6. branches: true
  7. # enable for pull requests coming from this repo (defaults to true)
  8. pullRequests: true
  9. # enable for pull requests coming from forks (defaults to false)
  10. pullRequestsFromForks: true
  11. # add a check to pull requests (defaults to true)
  12. addCheck: false
  13. # add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
  14. addComment: false
  15. # add a "Review in Gitpod" button to the pull request's description (defaults to false)
  16. addBadge: false
  17. # add a label once the prebuild is ready to pull requests (defaults to false)
  18. addLabel: false
  19. tasks:
  20. - init: pip3 install -e . && yarn install && yarn run build
  21. # for some reason,have to re-install on start, or else it doesn't find the python package
  22. # Set no token and allow any origin, so that you can open it in a new tab
  23. # Disable iframe security so can load in the editor as well
  24. command: >
  25. pip3 install -e . &&
  26. jupyter lab
  27. --dev-mode
  28. --watch
  29. --LabApp.token=''
  30. --LabApp.allow_origin=*
  31. --LabApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}'
  32. ports:
  33. - port: 8888