Skip to content

Commit e81827f

Browse files
committed
Fake metadata
1 parent 22d0b87 commit e81827f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/blockly/src/factory.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export class BlocklyEditorFactory extends ABCWidgetFactory<
4646
protected createNewWidget(
4747
context: DocumentRegistry.IContext<DocumentModel>
4848
): BlocklyEditor {
49+
// Set a map to the model. The widgets manager expects a Notebook model
50+
// but the only notebook property it uses is the metadata.
51+
context.model['metadata'] = new Map();
4952
const manager = new BlocklyManager(
5053
this._registry,
5154
context.sessionContext,

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ classifiers = [
2323
"Programming Language :: Python :: 3.11",
2424
]
2525
dependencies = [
26-
"jupyterlab~=3.6",
27-
"jupyterlab_widgets~=3.0"
26+
"jupyterlab~=3.6"
2827
]
2928
dynamic = ["version", "description", "authors", "urls", "keywords"]
3029

0 commit comments

Comments
 (0)