Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
P_work
Helper I
Helper I

Python 3.11 notebook slow startup when using builtin import

Python 3.11 notebook is slow to startup when using builtin import.  If builtin py file imports are not used, the notebook is orders of magnitude faster startup. Are there no workarounds to handle this? Most of these type of notebooks will be called in pipelines, so not sure if possible to 'warm' or always cold start?

1 REPLY 1
v-hjannapu
Community Support
Community Support

Hi @P_work,

Thank you  for reaching out to the Microsoft fabric community forum.

When a notebook is triggered from a pipeline, it always starts with a fresh session. During startup, Python has to set up the environment and load all imported files. If the notebook is using built-in or shared .py imports, this step takes more time, so the notebook startup feels slow. When those imports are removed, startup becomes faster.

Currently, there is no option to keep the notebook warm or reuse the same session when running from pipelines. Cold start will happen every time.

As a workaround, try to keep only required imports at the top and move other imports inside functions. Also, keep shared utility files as small and simple as possible to reduce startup delay.

Once the notebook starts, execution speed should be normal. The delay is mainly during initialization.

Hope this clarifies the issue.
Regards,
Community Support Team.

Helpful resources

Announcements
December Fabric Update Carousel

Fabric Monthly Update - December 2025

Check out the December 2025 Fabric Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.