cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Package cells for Python notebooks

Digan_Parikh
Valued Contributor

Do we have an analogous concept to package cells for Python notebooks?

1 ACCEPTED SOLUTION

Accepted Solutions

Digan_Parikh
Valued Contributor

You can just declare your classes and in one cell, and use them in the others. It is recommended to get all your classes in one notebook, and use %run in the other to "import" those classes.

The one thing you cannot do is to literally import a folder/file. To use import, you need to install the library in the cluster. 

View solution in original post

1 REPLY 1

Digan_Parikh
Valued Contributor

You can just declare your classes and in one cell, and use them in the others. It is recommended to get all your classes in one notebook, and use %run in the other to "import" those classes.

The one thing you cannot do is to literally import a folder/file. To use import, you need to install the library in the cluster. 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.