Skip to content

Commit 45c1aef

Browse files
committed
rename npm package
1 parent 799c588 commit 45c1aef

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,29 @@ More information are provided within the [ui-tests](./ui-tests/README.md) README
238238

239239
```bash
240240
# Terminal 1.
241+
# You can also invoke `make jupyter-server`
241242
jupyter server --port 8888 --autoreload --ServerApp.disable_check_xsrf=True --IdentityProvider.token= --ServerApp.port_retries=0
243+
```
242244

245+
```bash
243246
# Terminal 2.
244247
KERNEL=$(curl -X POST http://localhost:8888/api/kernels)
245248
echo $KERNEL
249+
246250
KERNEL_ID=$(echo $KERNEL | jq --raw-output '.id')
247251
echo $KERNEL_ID
248-
REQUEST=$(curl --include http://localhost:8888/api/kernels/$KERNEL_ID/execute -d "{ \"code\": \"print('1+1')\" }")
249-
RESULT=$(echo $REQUEST | grep -i ^Location: | cut -d' ' -f2 | tr -d '\r')
250-
echo $RESULT
251252

252-
curl http://localhost:8888$RESULT
253-
{"status": "ok", "execution_count": 1, "outputs": "[{\"output_type\": \"stream\", \"name\": \"stdout\", \"text\": \"1+1\\n\"}]"}
253+
RESPONSE=$(curl --include http://localhost:8888/api/kernels/$KERNEL_ID/execute -d "{ \"code\": \"print('1+1')\" }")
254+
echo $RESPONSE
255+
256+
RESULT_PATH=$(echo $RESPONSE | grep -oP 'Location:\s*\K[^ ]+' | tr -d '\r\n')
257+
echo $RESULT_PATH
258+
259+
URL="http://localhost:8888${RESULT_PATH}"
260+
echo $URL
261+
262+
curl "$URL"
263+
# {"status": "ok", "execution_count": 1, "outputs": "[{\"output_type\": \"stream\", \"name\": \"stdout\", \"text\": \"1+1\\n\"}]"}
254264
```
255265

256266
### Running Tests

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "jupyter-server-nbmodel",
2+
"name": "@datalayer/jupyter-server-nbmodel",
33
"version": "0.1.1-a2",
44
"description": "A Jupyter Server extension to execute code cell from the server.",
55
"keywords": [

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ artifacts = ["jupyter_server_nbmodel/labextension"]
5252
exclude = [".github", "binder"]
5353

5454
[tool.hatch.build.targets.wheel.shared-data]
55-
"jupyter_server_nbmodel/labextension" = "share/jupyter/labextensions/jupyter-server-nbmodel"
56-
"install.json" = "share/jupyter/labextensions/jupyter-server-nbmodel/install.json"
55+
"jupyter_server_nbmodel/labextension" = "share/jupyter/labextensions/@datalayer/jupyter-server-nbmodel"
56+
"install.json" = "share/jupyter/labextensions/@datalayer/jupyter-server-nbmodel/install.json"
5757
"jupyter-config/server-config" = "etc/jupyter/jupyter_server_config.d"
5858

5959
[tool.hatch.build.hooks.version]

0 commit comments

Comments
 (0)