Skip to content

Commit c9a9a06

Browse files
return content from api call rather than sent for create
1 parent a23d027 commit c9a9a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dss/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,10 +871,10 @@ def create_jupyter_notebook(self, notebook_name, notebook_content):
871871
:returns: A handle to interact with the newly created jupyter notebook
872872
:rtype: :class:`~dataikuapi.dss.notebook.DSSNotebook` jupyter notebook handle
873873
"""
874-
self.client._perform_json("POST",
874+
created_notebook_content = self.client._perform_json("POST",
875875
"/projects/%s/jupyter-notebooks/%s" % (self.project_key, notebook_name),
876876
body=notebook_content)
877-
return DSSNotebook(self.client, self.project_key, notebook_name, content=notebook_content)
877+
return DSSNotebook(self.client, self.project_key, notebook_name, content=created_notebook_content)
878878

879879
########################################################
880880
# Continuous activities

0 commit comments

Comments
 (0)