Share via

Import python scripts in notebooks

Anonymous
2023-10-21T18:10:25.7+00:00

I am using Azure Synapse with some Jupyter notebooks, some of them import some custom python scripts like the util-import.

However, I can't find the option to get *.py files in Azure Synapse since when I use the import functionalty, the *.py is automatically transformed to a notebook

How can I customize *.py files be used in Azure Synapse Notebooks, without transforming them from *.py to notebook?

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.

0 comments No comments

Answer accepted by question author

  1. Amira Bedhiafi 41,386 Reputation points MVP Volunteer Moderator
    2023-10-21T18:42:30.96+00:00

    I think you have the possibility to manage them at the workspace, pool, or session level you may need loading from PyPi to a Spark Pool, but you have the option to import JAR files to your workspace and reference them in your notebooks. Keep in mind while using PyPi is that if the package is dependent on C library packages, Synapse won't load it into your pool.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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