question

GunaEINFOSYSLIMITED-1594 avatar image
0 Votes"
GunaEINFOSYSLIMITED-1594 asked PRADEEPCHEEKATLA-MSFT commented

Set-AzSynapseNotebook (Az.Synapse) powershell module doesn't support notebooks with .py format

Set-AzSynapseNotebook (Az.Synapse) powershell module doesn't support notebooks with .py format. Currently it is work with .ipynb format only. Is there any work around for this?

azure-synapse-analytics
· 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.

Hello @GunaEINFOSYSLIMITED-1594,


Following up to see if the below suggestion was helpful. And, if you have any further query do let us know.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.

0 Votes 0 ·

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
1 Vote"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hello @GunaEINFOSYSLIMITED-1594,

Welcome to the Microsoft Q&A platform.

Synapse notebooks recognize standard Jupyter Notebook IPYNB files using PowerShell.

As per the repro, I had tested with notebooks with extensions (Python, JSON, DBC, HTML & IPYNB) files.

Using PowerShell: Only IPYNB files is the supported notebook file format. And for other formats you will experience this error message as is an invalid start of a value. LineNumber:0 | BytePositionInLine: 0

199047-image.png

For more details, refer to Azure Synapse Analytics - Create a Notebook.

Hope this will help. Please let us know if any further queries.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how

  • Want a reminder to come back and check responses? Here is how to subscribe to a notification

  • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    [1]: /answers/storage/attachments/143570-synapse-notebook-ipynb.gif


image.png (123.2 KiB)
· 4
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.

thanks @PRADEEPCHEEKATLA-MSFT for the Quick Response. Currently, from portal we can import .py notebooks to synapse workspace, only powershell module is not supporting the format

is there any road map that synapse powershell module( rest API) supports .py format notebook?

1 Vote 1 ·
PRADEEPCHEEKATLA-MSFT avatar image PRADEEPCHEEKATLA-MSFT GunaEINFOSYSLIMITED-1594 ·

Hello @GunaEINFOSYSLIMITED-1594,

Yes, you are correct.

Synapse notebooks recognize standard Jupyter Notebook IPYNB files using PowerShell. We are currently working with the product team to add this feature in PowerShell.

I will update this thread once it available.

1 Vote 1 ·