英特尔Modin Jupyter笔记本电脑问题

2024-09-27 20:19:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我和莫丁有两个问题

  1. 最近我无法使用以下命令创建modin环境:

    conda create -n aikit-modin intel-aikit-modin -c intel -c conda-forge

(如AI分析工具包https://software.intel.com/content/www/us/en/develop/articles/installing-ai-kit-with-conda.html#gs.2irfv6的文档链接所述)

似乎需要对文件进行更正

  1. 我能够使用stock创建modin环境

    conda create -n stock-modin modin -c conda-forge

(参考-https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/distribution-of-modin.html#gs.2isi2d 以及数据科学与Modin文档的规模:

https://medium.com/intel-analytics-software/data-science-at-scale-with-modin-5319175e6b9a

但是,在英特尔devcloud的在线JupyterLab中,当我尝试使用modin示例NYC_Taxi.ipynb时,我得到了一个

file save server error JupyterHub server no longer running at /user/uXXXXX/api/contents/modin/examples/jupyter/NYC_Taxi.ipynb. Restart the server at http://jupyter.oneapi.devcloud.intel.com/hub/spawn/uXXXXX

如屏幕截图所示。我无法完成笔记本。这看起来像是一个内核错误,尽管我从stock modin环境中创建了一个新的内核

Screenshot

(纽约市样本来源:https://github.com/modin-project/modin/tree/master/examples

如何执行Modin的英特尔发行版样本?有解决办法吗


Tags: httpscom环境serverwwwcreatestocksoftware
1条回答
网友
1楼 · 发布于 2024-09-27 20:19:34
  1. conda create -n aikit-modin intel-aikit-modin -c intel -c conda-forge

执行此命令需要时间。由于可以使用stock创建modin环境,因此可以使用以下方法执行笔记本

  1. 作为一种解决方法,devcloud隧道是这个内核错误的解决方案。开放终端,如Cygwinvscodemobaxtermopenssh。在执行以下步骤之前,应先设置devcloud连接。请参阅https://devcloud.intel.com/oneapi/documentation/shell-commands/中的Connect to the Devcloud选项

如果您已使用上述任何终端连接到devcloud,请按照以下步骤操作

在第一个终端执行以下命令

ssh devcloud  //(To connect to devcloud)
qsub -I  //(to request compute node)
copy the compute node  //(it would be of this format sXXX-nXXX)
conda create -n stock-modin modin -c conda-forge  //(to create modin environment using stock)
source activate stock-modin  //(activate modin environment)
conda install pip
conda install ipykernel  //(package for creating kernels)
python -m ipykernel install  user  name myenv  display-name "Python (myenv)"  //(command to create kernels)
jupyter notebook  no-browser  port=<desired_port_number>  //(to launch Jupyter)
Copy any one of the URLs
“Or copy and paste one of these URLs:
http://localhost: <desired_port_number>/?token=2deea502bd258ed648f59eb11383bff4fd0edf5a4ce4f4f3or 
http://127.0.0.1: <desired_port_number>/?token=2deea502bd258ed648f59eb11383bff4fd0edf5a4ce4f4f3”

在另一个终端中运行以下命令:(保持第一个终端打开)

ssh -L <desired_port_number>:localhost: <desired_port_number> devcloud 
ssh -L <desired_port_number>:localhost: <desired_port_number> <compute node you copied> 
  1. 在浏览器中打开复制的URL
  2. 你会得到Jupyter,打开所需的笔记本
  3. 选择您创建的内核
  4. 执行笔记本

相关问题 更多 >

    热门问题