Skip to content

YNotebook error with y-py v0.6.0 #146

@davidbrochart

Description

@davidbrochart

Description

Trying to instantiate and set a YNotebook fails with jupyter_ydoc v0.3.2. Downgrading y-py from v0.6.0 to v0.5.5 fixes the issue.

Reproduce

  1. pip install jupyter_ydoc==0.3.2
  2. Execute the following Python code:
from jupyter_ydoc import YNotebook

nb = {"cells": []}

ynb = YNotebook()
ynb.set(nb)
  1. See error:
Err(PyErr { type: <class 'y_py.MultipleIntegrationError'>, value: MultipleIntegrationError("Cannot integrate a nested Ypy object because is already integrated into a YDoc: {'id': '1d9dbf0a-34ac-46a4-bef9-101fb83d4cea', 'cell_type': 'code', 'execution_count': 1, 'metadata': YMap({}), 'outputs': YArray([]), 'source': YText(1 + 1)}"), traceback: None })

Expected behavior

No error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions