当前位置:网站首页>Vs Code connects to the remote jupyter server
Vs Code connects to the remote jupyter server
2022-07-25 10:22:00 【Haulyn5】
Preface
Reminder before reading : As of the issue of , If you use VS Code Connect remote Jupyter The server , Only code files can be stored locally (ipynb), The code is executed on the remote server . If you want to operate the directories and files of the remote server , Want to achieve like Jupyter Lab The web page of UI The same feeling , Not yet . If there is any change or other scheme, please leave a message .
to update : Although it can't pass Jupyter The server edits the file on the server , Browse the files and directories on the server , But if you have a server ssh Connection permissions , Can pass VS Code Self contained ssh Connect to the control server , Then edit and execute the code on the server . This article only introduces not to use ssh, Upload the local code to the remote jupyter The process executed by the environment .
The following is about VS Code Add related functions GitHub Issue.
Text
First make sure that your VS Code already installed Python and Jupyter expand .
Ctrl+Shift+X Open the expansion sidebar . Search for the above extensions and install , No more details here .
Next, create or open a new one in the code directory of the local computer ipynb file .( Here is the point , I searched for instructions for half a day without opening any files, but I couldn't find the instructions for setting up the remote server , To create or open a ipynb file , Relevant instructions can be searched )

Then click... In the lower right corner Jupyter The server .

Pictured , And then in URI Enter your browser access Jupyter Of URI that will do .( Don't forget the port number )
remarks
Actually, I want to go through VS Code Connect Jupyter Probably just like me , because Jupyter Lab/ Notebook The self-contained code completion is too difficult to use .( Actually, I tried Kite, It took a long time to find it cool ) And in want to VS Code Is there a plug-in here that can achieve the function of a browser interface , Can finish Web UI All functions of . As a result, there seems to be no , It's still under development . The current idea is , adopt ssh Manage the above files and data , Then edit it locally ipynb Connect to the server after the file , Using the server's GPU Environment .
In addition, I also did relevant tests , Because the execution environment is on the server , So the data set should also be placed on the server , Direct execution `!ls` And what you get is Jupyter Lab Root directory .
Reference documents :
边栏推荐
猜你喜欢
随机推荐
升级 GLIBC 2.29 checking LD_LIBRARY_PATH variable... contains current directory error 解决方案
Salt FAQs
OSPF协议的配置(以华为eNSP为例)
切换 shell 命令行终端(bash/zsh)后,conda 无法使用: command not found
Swing component
FRP reverse proxy deployment
集合的创建,及常用方法
常用类的小知识
简易加法计算器
Supervisor部署(离线部署需要提前下载部署包)
UE4源码的获取和编译
PyTorch 代码模板 (CNN)
Dynamic planning, shopping list problem
Attention is all you need 论文精读笔记 Transformer
shortest-unsorted-continuous-subarray
PyTorch 对 Batch 中每个样本计算损失 Loss for each sample
Angr (IX) -- angr_ ctf
conda 配置深度学习环境 pytorch transformers
Erlang (offline deployment)
多线程——五大状态
https://github.com/microsoft/vscode-jupyter/issues/1601






