laptop and a wrench

漏洞

The magic command (%run) fails in the ArcGIS Pro Jupyter Notebooks with the error "Exception: File' 'Notebook1.py' 'not found."

ArcGIS Pro
漏洞 ID 编号 BUG-000171913
已提交October 30, 2024
上次修改时间May 30, 2025
适用范围ArcGIS Pro
找到的版本3.3.2
操作系统Windows OS
操作系统版本11.0 64 bit
状态Known Limit

附加信息

When using the %run magic command, the execution context differs within an ArcGIS Pro project from where it would be if initializing a standalone notebook environment and can't reliably be located via relative paths. To call with %run, a full path should be specified, specifically in the format of double backslashed paths like '%run "C:\\Users\\username\\Documents\\ArcGIS\\Projects\\nb-run-across-files\\Notebook1.ipynb'. The run command does not accept raw strings (r-prefix strings) and specifically requires the double-backslash format. With that format, it can be used in the desired workflow.

重现步骤

漏洞 ID: BUG-000171913

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项