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.