Can we use a variable to mention the path in the %run command
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2022 11:04 PM
To compile the Python scripts in Azure notebooks, we are using the magic command %run.
The first parameter for this command is the notebook path, is it possible to mention that path in a variable (we have to construct this path dynamically during the run) and use it?
myNotebookPath = '/Shared/myNotebook'
%run myNotebookPath
Labels:
- Labels:
-
Azure
-
Notebook Path
-
Python