How to automate creating notebooks when i have multiple .html or .py files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 04:17 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 11:13 AM - edited 09-22-2023 11:18 AM
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