Skip to content

Commit 2d305c2

Browse files
authored
Merge pull request #87 from QuantStack/updateLite
Update JupyterLite deployment and docs
2 parents 15ffb61 + 6b4a7a4 commit 2d305c2

File tree

3 files changed

+7
-45
lines changed

3 files changed

+7
-45
lines changed

docs/build-environment.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ dependencies:
77
- mamba
88
- myst-parser
99
- pydata-sphinx-theme
10-
- python=3.9
10+
- python
11+
- jupyterlab-blockly
1112
- pip:
12-
- jupyterlab-blockly
13-
# Remove all pinning when we support jupyterlab v4 in jupyterlab-blockly
14-
- jupyterlite-core===0.1.3
15-
- jupyterlite-sphinx===0.9.3
16-
- jupyterlite-xeus===0.1.8
13+
- jupyterlite-core
14+
- jupyterlite-sphinx
15+
- jupyterlite-xeus

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
author = 'Denisa Checiu'
2222

2323
# The full version, including alpha/beta/rc tags
24-
release = '0.1.0'
24+
release = '0.3.0'
2525

2626

2727
# -- General configuration ---------------------------------------------------

docs/other_extensions.md

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -111,43 +111,6 @@ const plugin: JupyterFrontEndPlugin<void> = {
111111
**NOTE** : `BlocklyNiryo` is defined in `niryo-one-python-generators.ts`.
112112

113113

114-
## Include patches
115-
Currently, for the extension to work, you will need to include the following patch from the JupyterLab-Blockly extension (make sure it is placed in a file named `@jupyterlab+codeeditor+3.4.3.patch`, inside the `patches` folder):
116-
117-
```
118-
// patches/@jupyterlab+codeeditor+3.4.3.patch
119-
120-
diff --git a/node_modules/@jupyterlab/codeeditor/lib/editor.d.ts b/node_modules/@jupyterlab/codeeditor/lib/editor.d.ts
121-
index ffe8d1f..d63b2f8 100644
122-
--- a/node_modules/@jupyterlab/codeeditor/lib/editor.d.ts
123-
+++ b/node_modules/@jupyterlab/codeeditor/lib/editor.d.ts
124-
@@ -44,7 +44,7 @@ export declare namespace CodeEditor {
125-
/**
126-
* An interface describing editor state coordinates.
127-
*/
128-
- interface ICoordinate extends JSONObject, ClientRect {
129-
+ interface ICoordinate extends JSONObject {
130-
}
131-
/**
132-
* A range.
133-
```
134-
135-
You will also need to modify the `MANIFEST.in` file:
136-
```
137-
recursive-include patches *.patch
138-
```
139-
the `package.json` file:
140-
```
141-
"scripts": {
142-
...
143-
"postinstall": "patch-package"
144-
}
145-
````
146-
and, finally, add `patch-package` as a dependency:
147-
```
148-
jlpm add patch-package
149-
```
150-
151114
## Additional configurations
152115

153116
You will need to request the `jupyterlab-blockly` package as a dependency of your extension, in order to ensure it is installed and available to provide the token `IBlocklyRegistry`. To do this, you need to add the following line to your `setup.py` file.
@@ -157,7 +120,7 @@ You will need to request the `jupyterlab-blockly` package as a dependency of you
157120

158121
setup_args = dict(
159122
...
160-
install_requires=['jupyterlab-blockly>=0.1.1,<0.2']
123+
install_requires=['jupyterlab-blockly>=0.3.0,<0.4']
161124
...
162125
)
163126
```

0 commit comments

Comments
 (0)