栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

centos7中xeus-cling的安装和使用

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

centos7中xeus-cling的安装和使用

centos7中xeus-cling的安装和使用
  • 1. 安装xeus-cling
  • 2. 使用xeus-cling
    • (1)centos上启动jupyter
    • (2)本地机器打开jupyter网页
    • (3)jupyter操作C++

1. 安装xeus-cling

前提:安装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-forge
2. 使用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使用例子

暑期编程PK赛 得CSDN机械键盘等精美礼品!
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1015796.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号