We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0983eef commit 2c66f27Copy full SHA for 2c66f27
zt_backend/models/state/notebook_state.py
@@ -14,7 +14,7 @@ def __init__(self):
14
15
self.notebook_db_path = notebook_db_path
16
codeCell = notebook.CodeCell(
17
- id="cell_0",
+ id=str(uuid.uuid4()).split('-')[0],
18
code="",
19
components=[],
20
variable_name="",
zt_backend/router.py
@@ -193,7 +193,6 @@ def run_all():
193
def create_cell(cellRequest: request.CreateRequest):
194
if app_state.run_mode == "dev":
195
logger.debug("Code cell addition request started")
196
- num_cells = len(notebook_state.zt_notebook.cells.keys())
197
num_cells = str(uuid.uuid4()).split('-')[0]
198
createdCell = notebook.CodeCell(
199
id="cell_"+str(num_cells),
0 commit comments