cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

I can't import an library like the example

marco_almeida
New Contributor II

I read this article and I created a notebook to use like a library but when I tried to import it in other notebook I received this error: No module named 'lib.lib_test'

No module named 'lib.lib_*****'

2 REPLIES 2

Ryan_Chynoweth
Esteemed Contributor

@Marco Antรดnio de Almeida Fernandesโ€‹ - It looks like you are working out of the "workspace" tab. This is not supported. The python imports are for Databricks "Repos". Please note that file that you want to import will need to be a python file (not a notebook).

Here is an example but just make sure it is in a git repo. https://github.com/rchynoweth/DemoContent/tree/main/PythonImports

Anonymous
Not applicable

Hey @Marco Antรดnio de Almeida Fernandesโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group