OiO.lk Blog python Converting .py file to Databricks with Markdown
python

Converting .py file to Databricks with Markdown


I wish to convert a python .py file into one that can be run on Databricks with multiple cells. I don’t wish to do it in the GUI, as I’ll eventually want an automated process for this. What is the minimal code to create a title cell and then have the rest of the code being Python code?
I’ve tried this, but it doesn’t work:

%md
# Title

%python
# My code goes here

I could copy some output from a Databricks notebook I created my self I suppose, but it’s really not that minimal.



You need to sign in to view this answers

Exit mobile version