Hi Kaniz,
Thank you for your reply.
Actually I don't want to create dataframe. I have json content of notebook, which I got by reading a notebook itself, but I can't create a notebook from that json.
You can see below code to understand in detail what I want to do:
def export_notebook():
export_payload = {
"path": notebook_path,
"format": "SOURCE"
}
response = requests.get(export_url, headers=headers, json=export_payload)
response.raise_for_status()
return response.json()["content"]
def import_notebook(new_content๐
import_payload = {
"path": new_notebook_path,
"content": new_content
}
response = requests.post(import_url, headers=headers, json=import_payload)
if response.status_code != 200:
print(response.content)
response.raise_for_status()
I can export my notebook and make changes to json, but can't import back to my workspace.
Please help me with this.