Avoid %run and use import! Python Modules/Libraries Without Magic Commands in MS Fabric Notebooks

Опубликовано: 17 Июнь 2026
на канале: Data On My Mind
365
38

You can use this code from github:
https://github.com/shberlin/ms_fabric...

I am demonstrating a work-around solution to import python notebooks like python modules in microsoft fabric.

0:00 Intro
0:35 Why using %run utils is bad practice (less transparency and namespace pollution)
5:31 Requirements for a good solution
5:53 First (bad) Option: Place py scripts into a lakehouse
7:44 Second (still bad) Option: Place py scripts into environment
10:44 Third BEST Option: Workaround to refresh modules
15:05 What is your experience?

#fabric #microsoft #python #spark #libraries #development #tutorial #notebook