This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Is it possible to retrieve progrmatically the current path/directory of the notebook; the following does not return the desired
notebookutils.notebook.get('NB1')
Solved! Go to Solution.
Hi @smpa01,
In fact, this code is used to get the detail information of notebook instead of path/directory.
{'id': 'xxxxxxx',
'type': 'Notebook',
'displayName': 'notebook name',
'description': 'New notebook',
'workspaceId': 'xxxxxxxx',
'properties': {}}
You can extract the 'id' and 'workspace id' properties to concatenate the relative path: groups/{workspace id}/synapsenotebooks/{noteboke id}.
Regards,
Xiaoxin Sheng
Hi @smpa01,
In fact, this code is used to get the detail information of notebook instead of path/directory.
{'id': 'xxxxxxx',
'type': 'Notebook',
'displayName': 'notebook name',
'description': 'New notebook',
'workspaceId': 'xxxxxxxx',
'properties': {}}
You can extract the 'id' and 'workspace id' properties to concatenate the relative path: groups/{workspace id}/synapsenotebooks/{noteboke id}.
Regards,
Xiaoxin Sheng
Check out the April 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 21 | |
| 13 | |
| 10 | |
| 6 | |
| 6 |