Issue
I searched many threads in different forums but unfortunately did not find a solution to my problem.
I would like to save my Databricks Notebook after executing it as an HTML file with the output of cells.
I know there is an option to save the file manually using File >> Export >> HTML, but is there an option to use some method in the last cell that will do this without manually clicking?
I mean something similar to:
!jupyter nbconvert your_notebook_name.ipynb --to html
Thanks for any tips!
Solution
If you run similar code in the notebook, will be then exported to the local disk of the driver node not to your computer, as code is executed in the cloud.
One approach to get it as HTML to your local disk, is to use Export command of Workspace REST API or corresponding command of Databricks CLI
Answered By - Alex Ott
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.