You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
This extension is composed of a Python package named `jupyterlab_chat`
7
-
for the server extension and a NPM package named `@jupyterlab/chat`
8
-
for the frontend extension.
6
+
This package is composed of a Python package named `jupyterlab_chat`
7
+
for the server side and a NPM package named `@jupyterlab/chat`
8
+
for the frontend side.
9
9
10
10
## Requirements
11
11
12
12
- JupyterLab >= 4.0.0
13
13
14
14
## Install
15
15
16
-
To install the extension, execute:
16
+
To install the package, execute:
17
17
18
18
```bash
19
19
pip install jupyterlab_chat
20
20
```
21
21
22
22
## Uninstall
23
23
24
-
To remove the extension, execute:
24
+
To remove the package, execute:
25
25
26
26
```bash
27
27
pip uninstall jupyterlab_chat
28
28
```
29
29
30
-
## Troubleshoot
31
-
32
-
If you are seeing the frontend extension, but it is not working, check
33
-
that the server extension is enabled:
34
-
35
-
```bash
36
-
jupyter server extension list
37
-
```
38
-
39
-
If the server extension is installed and enabled, but you are not seeing
40
-
the frontend extension, check the frontend extension is installed:
41
-
42
-
```bash
43
-
jupyter labextension list
44
-
```
45
-
46
30
## Contributing
47
31
48
32
### Development install
@@ -58,44 +42,19 @@ The `jlpm` command is JupyterLab's pinned version of
58
42
# Change directory to the jupyterlab_chat directory
59
43
# Install package in development mode
60
44
pip install -e ".[test]"
61
-
# Link your development version of the extension with JupyterLab
62
-
jupyter labextension develop . --overwrite
63
-
# Server extension must be manually installed in develop mode
64
-
jupyter server extension enable jupyterlab_chat
65
-
# Rebuild extension Typescript source after making changes
45
+
# Rebuild Typescript source after making changes
66
46
jlpm build
67
47
```
68
48
69
-
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
70
-
71
-
```bash
72
-
# Watch the source directory in one terminal, automatically rebuilding when needed
73
-
jlpm watch
74
-
# Run JupyterLab in another terminal
75
-
jupyter lab
76
-
```
77
-
78
-
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
79
-
80
-
By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
81
-
82
-
```bash
83
-
jupyter lab build --minimize=False
84
-
```
49
+
By default, the `jlpm build` command generates the source maps for this package to make it easier to debug using the browser dev tools.
85
50
86
51
### Development uninstall
87
52
88
53
```bash
89
-
# Server extension must be manually disabled in develop mode
90
-
jupyter server extension disable jupyterlab_chat
91
54
pip uninstall jupyterlab_chat
92
55
```
93
56
94
-
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
95
-
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
96
-
folder is located. Then you can remove the symlink named `@jupyterlab/chat` within that folder.
97
-
98
-
### Testing the extension
57
+
### Testing the package
99
58
100
59
#### Server tests
101
60
@@ -105,8 +64,6 @@ Install test dependencies (needed only once):
105
64
106
65
```sh
107
66
pip install -e ".[test]"
108
-
# Each time you install the Python package, you need to restore the front-end extension link
0 commit comments