Advertisement
epicminer

how to deploy jupiter lab on docker cloud shell

Jan 12th, 2024
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | Cryptocurrency | 0 0
  1. 1: docker pull ubuntu:latest
  2.  
  3. 2: docker run -it --name my-ubuntu ubuntu
  4.  
  5. 3====
  6.  
  7. apt-get update && \
  8. apt-get install -y \
  9. software-properties-common \
  10. curl \
  11. git \
  12. wget \
  13. && apt-get clean \
  14. && rm -rf /var/lib/apt/lists/*
  15.  
  16. 4===
  17. apt-get update && \
  18. apt-get install -y \
  19. python3 \
  20. python3-pip \
  21. && apt-get clean \
  22. && rm -rf /var/lib/apt/lists/*
  23.  
  24. 5: apt update
  25.  
  26. 6: apt install nano -y
  27.  
  28. 7: python3 -m pip install notebook
  29.  
  30. 8: python3 -m notebook --version
  31.  
  32. 9: jupyter notebook --generate-config
  33.  
  34. 10: nano ~/.jupyter/jupyter_notebook_config.py
  35.  
  36. #### ctrl+x and y then hit enter
  37.  
  38. 11: c.NotebookApp.allow_remote_access = True
  39.  
  40. 12: ====
  41.  
  42. wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz
  43. tar -xvf ngrok-stable-linux-amd64.tgz
  44.  
  45. 13: ./ngrok authtoken your_auth_token
  46.  
  47. 14: pip3 install notebook
  48.  
  49. 15: python3 -m notebook --allow-root
  50.  
  51. 16: docker ps -a
  52.  
  53. # copy or note your contaner id
  54.  
  55. 17: docker exec -it 85525721994a /bin/bash
  56.  
  57. <^^^^^^^^^^^> paste your contaner id here
  58.  
  59. 18: ./ngrok http 8888
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement