Remote connection in operation Jupyter
stay adopt SSH Connecting to Running Jupyter implement It was introduced through ssh Protocol connection in operation Jupyter The method, besides HyperAI In the middle Jupyter Services can also be provided directly through Jupyter Server of URL Direct connection. This way, local .ipynb
File usage HyperAI In the middle Python Environment and GPU Resources are available.
Stay VS Code Remote Connection HyperAI Jupyter Server
-
Installation required Jupyter plug-in unit.
-
open "Command Panel" choice "Jupyter: Specify local or remote Jupyter Connection to the server"
-
Click to select "Existing" :
-
Click on the running container page "Copy link" Copy Jupyter Server The link.
-
Paste the link to the previous one VS Code Dialogue boxes in the command panel, Need to delete container ID The latter part. Otherwise, the link will not be successful, Then follow the prompts to reload the page.
The obtained link is:
https://hyperai.com/jobs/xushanchuan/jobs/iay6ih7xrgal/lab/tree/home
Need to delete ID Subsequent sections:
https://hyperai.com/jobs/xushanchuan/jobs/iay6ih7xrgal
- stay VS Code Create in the middle test.ipynb file. Enter the content of the following image and click to execute. It will prompt to select the kernel. Just point to the kernel with default prompts.
Stay PyCharm Remote Connection HyperAI Jupyter Server
Connect Jupyter The server
-
Create a local one Python project. And create one under the project
test.ipynb
file. After opening the file, click on the top position to select "Configure Jupyter Server..." . -
Select in the pop-up window "Configured Server" And click on the running container page "Copy link" Copy here, Need to delete container ID The latter part. Otherwise, the link will not be successful.
The link obtained in the above image is:
https://hyperai.com/jobs/xushanchuan/jobs/iay6ih7xrgal/lab/tree/home
Need to delete ID Subsequent sections:
https://hyperai.com/jobs/xushanchuan/jobs/iay6ih7xrgal
- Create a new code block. Test whether the link is successful.
Support auto completion
In achieving Jupyter After connecting to the server, it was found that there were actually no grammar checks or auto completion. Need to follow the document Configure an interpreter using SSH add to remote interpreter. There are detailed steps in the video above.