|
|
@ -1,15 +1,16 @@
|
|
|
|
# Jupyter Notebook 和 Polyglot Notebooks
|
|
|
|
# 安装与配置 Polyglot Notebooks
|
|
|
|
Jupyter Notebook安装,另文说明。本文档主要安装与配置`Polyglot Notebook`,`Polyglot Notebook`与Jupyter结合使用;
|
|
|
|
本文档主要安装与配置`Polyglot Notebook`及`Polyglot Notebook`与`Jupyter`结合使用;
|
|
|
|
安装环境 windows11 22H2(Windows Server 2022 21H2)、Python 3.11.4、JupyterNote 7.0.2、 JupyterLab 4.0.4
|
|
|
|
安装环境 windows11 22H2(Windows Server 2022 21H2)、Python 3.11.4、JupyterNote 7.0.2、 JupyterLab 4.0.4
|
|
|
|
|
|
|
|
|
|
|
|
## Polyglot Notebooks 安装及配合
|
|
|
|
## Polyglot Notebooks 安装及配合
|
|
|
|
|
|
|
|
|
|
|
|
`Polyglot Notebook` 是`VS Code插件`,`VS Code`使用此插件充当前端UI部分,后台服务是基于.net core的微软开发的`.net interactive`[项目](https://github.com/dotnet/interactive).
|
|
|
|
`Polyglot Notebook` 是 `VS Code插件`,`VS Code` 使用此插件充当前端UI部分,后台服务是微软基于.net core 开发的 `.net interactive`[项目](https://github.com/dotnet/interactive).
|
|
|
|
安装`Polyglot Notebook`插件时,VS Code会自动安装一些相关的服务啥的。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 前提:安装 .Net7(当前是.Net7)
|
|
|
|
安装`Polyglot Notebook`插件时,VS Code会自动安装一些相关的服务:`.net interactive`等。
|
|
|
|
|
|
|
|
|
|
|
|
### 前提:安装VS Code
|
|
|
|
### 前提:
|
|
|
|
|
|
|
|
+ 安装 .Net SDK (当前是 .Net 9)
|
|
|
|
|
|
|
|
+ 安装 VS Code
|
|
|
|
|
|
|
|
|
|
|
|
### Polyglot Notebooks 安装及配置
|
|
|
|
### Polyglot Notebooks 安装及配置
|
|
|
|
+ 打开 `VS Code`,插件安装界面输入:C#或.net core,在插件列表中选择并安装相关插件(非必需,但开发c#要先安装上)
|
|
|
|
+ 打开 `VS Code`,插件安装界面输入:C#或.net core,在插件列表中选择并安装相关插件(非必需,但开发c#要先安装上)
|
|
|
@ -19,7 +20,7 @@ Jupyter Notebook安装,另文说明。本文档主要安装与配置`Polyglot
|
|
|
|
+ VS Code中创建使用 Polyglot Notebooks 略过。有专用的使用学习项目。
|
|
|
|
+ VS Code中创建使用 Polyglot Notebooks 略过。有专用的使用学习项目。
|
|
|
|
|
|
|
|
|
|
|
|
### 结合Jupyter一起使用
|
|
|
|
### 结合Jupyter一起使用
|
|
|
|
+ Jupyter安装`.net interactive`
|
|
|
|
+ Jupyter 安装`.net interactive`
|
|
|
|
|
|
|
|
|
|
|
|
```cmd
|
|
|
|
```cmd
|
|
|
|
#1安装 `.net interactive` 到.net全局工具
|
|
|
|
#1安装 `.net interactive` 到.net全局工具
|
|
|
@ -34,10 +35,10 @@ Jupyter Notebook安装,另文说明。本文档主要安装与配置`Polyglot
|
|
|
|
#4 vs code中,新建或打开笔记本文件,在内核选择中可以选中本机的 "现有的Jupyter服务",输入地址与密码,连接Jupyter服务。
|
|
|
|
#4 vs code中,新建或打开笔记本文件,在内核选择中可以选中本机的 "现有的Jupyter服务",输入地址与密码,连接Jupyter服务。
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### 连接到远程 Jupyter服务器
|
|
|
|
### 连接到远程 Jupyter 远程服务器
|
|
|
|
+ 配置好Jupyter远程服务,使用可以在浏览器中远程访问
|
|
|
|
+ 配置好Jupyter远程服务,使用可以在浏览器中远程访问
|
|
|
|
+ 使用远程Jupyter服务
|
|
|
|
+ 使用远程Jupyter服务
|
|
|
|
vs code中,新建或打开笔记本文件,在内核选择中选中 `现有的Jupyter服务`,输入远程地址与密码,连接到Jupyter服务。
|
|
|
|
vs code 中,新建或打开笔记本文件,在内核选择中选中 `现有的Jupyter服务`,输入远程地址与密码,连接到Jupyter服务。
|
|
|
|
|
|
|
|
|
|
|
|
### `.net interactive`有一个命令行项目,可以替代vs code的UI层,执行写好的笔记。适合命令行使用。
|
|
|
|
### `.net interactive`有一个命令行项目,可以替代vs code的UI层,执行写好的笔记。适合命令行使用。
|
|
|
|
|
|
|
|
|
|
|
|