I am getting magic usage error, if i am trying to run two .ipynb file in azure synapse notebook

Balaji M [C] 0 Reputation points
2023-12-18T14:21:34.1433333+00:00

I am getting magic usage error, if i am trying to run two .ipynb file.
Can you please let me know how to run the below code in azure synapse notebook

User's image

User's image

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,385 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-12-18T19:16:48.9+00:00

    Hello Balaji M [C],

    Welcome to the Microsoft Q&A froum.

    Per the error message the %run magic command is not recognized because there is no space between %run and the path to the notebook file.

    adding a space between %run and the path should resolve the issue.

    ex:

    %run /pathto/insertdata.ipynb

    %run /pathto/generateinitialforecast.ipynb

    I hope this helps. Please try and let me know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.