Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
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
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Fabric update to learn about new features.
| User | Count |
|---|---|
| 18 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 61 | |
| 27 | |
| 14 | |
| 7 | |
| 7 |