- 1. 安装xeus-cling
- 2. 使用xeus-cling
- (1)centos上启动jupyter
- (2)本地机器打开jupyter网页
- (3)jupyter操作C++
前提:安装conda
# 1.创建一个虚拟环境:cling conda create -n cling # 2.启动虚拟环境 conda activate cling # 3.安装需要软件 # 安装xeus-cling和jupyterlab conda install xeus-cling -c conda-forge conda install jupyterlab -c conda-forge2. 使用xeus-cling (1)centos上启动jupyter
# 1.启动虚拟环境 conda activate cling # 2.启动jupyter jupyter lab --allow-root(2)本地机器打开jupyter网页
- 关联端口,其中端口为centos上打开jupyter后对应的端口
- “localhost:端口”打开
# 本地终端关联端口 ssh -N -f -L localhost:端口:localhost:端口 root@ip
再完成端口关联后,打开本地网址即可:http://127.0.0.1:200/lab
(3)jupyter操作C++新建jupyter notebook:
C++编码并执行:
链接:
[1]: xeus-cling
[2]: xeus-cling使用例子



