Skip to content

Commit 6a6c370

Browse files
committed
Anchor is optional
1 parent 5c1040f commit 6a6c370

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sidecar/sidecar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ class Sidecar(Output):
2626
anchor = CaselessStrEnum(
2727
['split-right', 'split-left', 'split-top', 'split-bottom', 'tab-before', 'tab-after', 'right'],
2828
default_value='right',
29-
allow_none=False
29+
allow_none=True
3030
).tag(sync=True)

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function activateWidgetExtension(app: JupyterLab, registry: IJupyterWidgetRegist
6565
v._outputView.activate();
6666
});
6767
} else {
68-
let anchor = this.model.get('anchor');
68+
let anchor = this.model.get('anchor') || 'right';
6969
if(anchor === 'right'){
7070
app.shell.add(w, 'right');
7171
app.shell.expandRight();

0 commit comments

Comments
 (0)