- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 10:28 AM
When saving notebook to GiHub repo, it is stripped to Python source code. Is it possible to save it in the ipynb formt?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 11:11 PM
as git is a repository for source code it is logical it is converted to py files as these can be run as a job.
Is this what you look for?
https://github.com/Yoyodyne-Data-Science/ipynb-py-convert-databricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 11:11 PM
as git is a repository for source code it is logical it is converted to py files as these can be run as a job.
Is this what you look for?
https://github.com/Yoyodyne-Data-Science/ipynb-py-convert-databricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 11:52 PM
Exactly - thanks for pointing out!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 03:09 AM
you can also use the databricks cli. There is a jupyter format option.
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/cli/workspace-cli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 05:52 AM
The notesbooks save to git are in .py format. The code that is markdown or magic commands get commented out. If you reload it as a notebook, then it will render that markdown and code again. Here is what the python would look like
# Databricks notebook source
# INCLUDE_HEADER_TRUE
# INCLUDE_FOOTER_TRUE
# COMMAND ----------
# MAGIC %md
# MAGIC # Databricks Platform
# MAGIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 02:31 PM
Awesome ideas and responses here in this thread @Werner Stinckens @Joseph Kambourakis ! Thanks for helping out!
@Sergii Ivakhno If you got what you needed, please let us know by selecting the "best answer"! This helps the community see when a question has its answer! 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 01:33 PM
When I save+commit+push my .ipynb file to my linked git repo, I noticed that only the cell inputs are saved, not the output. This differs from the .ipynb file I get when I choose "File / Export / iPython Notebook". Is there a way to save the cell outputs in my git commit as well?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 01:57 PM
Solved in my other thread: