Skip to content

Unable to download notebooks as python files #223

@KB-Q

Description

@KB-Q

I've clearly defined my extensions for downloading notebooks as follows:

"databricks.connection.default.exportFormats": {
        "Scala": ".scala",
        "Python": ".py",
        "SQL": ".sql",
        "R": ".r"
},
  • yet when I download a python notebook it is downloaded as an ipynb file only (see attached screenshot)
Image

Another interesting thing is that when I create a python file like this, and upload it to databricks:

# Databricks notebook source
# COMMAND ----------
print("Hello World")
  • it automatically gets converted to a databricks notebook (which is expected)
  • however when I download it back, it gets downloaded as a ipynb notebook and messes up the local python file

Expected behaviour:

  • with the above defined exportFormats, databricks notebooks should be downloaded as python files
  • python files uploaded with the above # Databricks notebook source comment should be converted to databricks notebooks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions