Processing Notebook in python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 10:39 PM
Hi,
I exported notebook from my workspace into my local machine and want to read it in my python code .
Is there a way to read the content of my notebook programmatically and make necessary changes and save as dbc/html notebook.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 04:13 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 09:26 PM
I want to automate the refactoring, so using DBConnect and VScode extension I can develop my code.
But I want to modify already written code.
Like, Example: if in my old_notebook whereever there is table1 i need to replace with table2.
For these I need to read notebook and replace the content programmatically.