laptop and a wrench

Erro

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

ArcGIS Pro
Número de ID do Erro BUG-000171913
EnviadoOctober 30, 2024
Última ModificaçãoMay 30, 2025
Aplica-se àArcGIS Pro
Versão encontrada3.3.2
Sistema OperacionalWindows OS
Versão do Sistema Operacional11.0 64 bit
StatusKnown Limit

Informações Adicionais

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.

Etapas para Reproduzir

ID do Erro: BUG-000171913

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download