Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Working in a python framework where I have developed my own custom python modules, I wanted a way to be able to import these modules into my main python notebook. Luckily environments does this perfectly, however the isssue is that if even if I'm connected to Azure DevOps git, these custom modules under "Storage" in an Environment resource are not synced to the git main branch.
Reproduction steps:
Assuming you are already connected to Azure DevOps git.
1. create a file, hello.py with contents: print("Hello")
2. In Fabric create environment, "hello_env", upload hello.py under "Resources" of this environment
3. create a Fabric notebook, run_hello, choose "hello_env" as it's Environment
4. You can then import hello.py module and run it in the notebook as follows;
import env.hello as greetings
greetings
The problem is that if you commit your code to Azure DevOps you will realize that "hello.py" is not captured.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.