question

alexfeng-6406 avatar image
0 Votes"
alexfeng-6406 asked yvindRogneJensrud-2651 published

Synapse Notebook reference - how to use %run

I'm trying to use the Azure Synapse notebook reference described here:

https://docs.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-development-using-notebooks?tabs=preview#notebook-reference

Here is my setup, notebook_1 and notebook_2 are both under root folder of Synapse notebooks. Both notebooks have been published.

I have a notebook_1 published in workspace and then trying to call it in notebook_2 using

%run 'notebook_1'

Got an error saying:

MagicUsageError: Cannot read notebook 'notebook_1'. The possible reason is that the notebook doesn't exist.

I have tried other varieties like 'notebook_1.ipynb', './notebook_1.ipynb', no luck.

Could anyone give some advice on the proper way of doing that? Many thanks.


azure-synapse-analytics
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VaibhavChaudhari avatar image
0 Votes"
VaibhavChaudhari answered Shabut-4812 commented

Can you simply run without single quotes-


122868-image.png




Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav


image.png (4.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Has anyone tried passing the notebook name as a parameter?

0 Votes 0 ·
yvindRogneJensrud-2651 avatar image
0 Votes"
yvindRogneJensrud-2651 answered yvindRogneJensrud-2651 published

I tried. It does not work

241050-image.png



image.png (16.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.