ossinova
Contributor II

Not sure what you are trying to accomplish here. If you want to export a notebook as python to do manual editing locally, and then import it back into your workspace why not use repos and connect to it using VSCode etc? You can export the notebook as a python file. Just don't delete the top # Databricks notebook source line. Otherwise you can also use DBConnect and the VSCode Databricks Extension to run the code locally using your Databricks custer.