cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to automate creating notebooks when i have multiple .html or .py files

RithwikMR
New Contributor

Hi all,

I have 50+ .html and .py files, for which I have to create separate notebooks for each and every single one of them. 
For this, manually creating a notebook using the UI and importing the .html/.py file is a bit tedious and time consuming. 
Is there a way to automate this process? Say I can upload those .html/.py files to my DBFS and create notebooks automatically using those?

Any help would be appreciated.

1 REPLY 1

btafur
Databricks Employee
Databricks Employee

Depending on your use case and requirements, one alternative would be to create a script that loops through your files and uploads them using the API. You can find more information about the API here: https://docs.databricks.com/api/workspace/workspace/import

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