jupyter-chat-example 0.20.0-alpha.2 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +4 -4
- package/package.json +2 -2
- package/src/index.ts +5 -5
package/lib/index.js
CHANGED
|
@@ -96,9 +96,9 @@ const plugin = {
|
|
|
96
96
|
enableCodeToolbar: setting.get('enableCodeToolbar')
|
|
97
97
|
.composite
|
|
98
98
|
};
|
|
99
|
-
panel.
|
|
100
|
-
|
|
101
|
-
}
|
|
99
|
+
if (panel.current) {
|
|
100
|
+
panel.current.model.config = config;
|
|
101
|
+
}
|
|
102
102
|
}
|
|
103
103
|
// Read the settings
|
|
104
104
|
loadSetting(setting);
|
|
@@ -132,7 +132,7 @@ const plugin = {
|
|
|
132
132
|
createModel: createModel,
|
|
133
133
|
// No op, since the chat are transient, but it need to be provided to have the
|
|
134
134
|
// button in the toolbar.
|
|
135
|
-
renameChat:
|
|
135
|
+
renameChat: true
|
|
136
136
|
});
|
|
137
137
|
app.shell.add(panel, 'left');
|
|
138
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jupyter-chat-example",
|
|
3
|
-
"version": "0.20.0
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "A chat extension providing a chat as example",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"install:extension": "jlpm build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@jupyter/chat": "^0.20.0
|
|
47
|
+
"@jupyter/chat": "^0.20.0",
|
|
48
48
|
"@jupyterlab/application": "^4.2.0",
|
|
49
49
|
"@jupyterlab/apputils": "^4.3.0",
|
|
50
50
|
"@jupyterlab/notebook": "^4.2.0",
|
package/src/index.ts
CHANGED
|
@@ -132,9 +132,9 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|
|
132
132
|
.composite as boolean
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
panel.
|
|
136
|
-
|
|
137
|
-
}
|
|
135
|
+
if (panel.current) {
|
|
136
|
+
panel.current.model.config = config;
|
|
137
|
+
}
|
|
138
138
|
}
|
|
139
139
|
// Read the settings
|
|
140
140
|
loadSetting(setting);
|
|
@@ -155,7 +155,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|
|
155
155
|
app.commands.execute('docmanager:open', { path: attachment.value });
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
const createModel = async (): Promise<MultiChatPanel.
|
|
158
|
+
const createModel = async (): Promise<MultiChatPanel.IOpenChatArgs> => {
|
|
159
159
|
const model = new MyChatModel({
|
|
160
160
|
activeCellManager,
|
|
161
161
|
selectionWatcher,
|
|
@@ -174,7 +174,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|
|
174
174
|
createModel: createModel,
|
|
175
175
|
// No op, since the chat are transient, but it need to be provided to have the
|
|
176
176
|
// button in the toolbar.
|
|
177
|
-
renameChat:
|
|
177
|
+
renameChat: true
|
|
178
178
|
});
|
|
179
179
|
app.shell.add(panel, 'left');
|
|
180
180
|
}
|