Skip to content

Commit 8d804b9

Browse files
authored
Merge pull request #10 from DenisaCG/blockly
Updated to latest version of `jupyterlab-blockly`
2 parents d19b1ce + f0ae111 commit 8d804b9

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"dependencies": {
5757
"@jupyterlab/application": "^3.4",
5858
"blockly": "^7.20211209.2",
59-
"jupyterlab-blockly": "^0.1.0",
59+
"jupyterlab-blockly": "^0.1.1",
6060
"patch-package": "^6.4.7",
6161
"postinstall-postinstall": "^2.1.0"
6262
},
@@ -87,7 +87,17 @@
8787
},
8888
"jupyterlab": {
8989
"extension": true,
90-
"outputDir": "jupyterlab_niryo_one/labextension"
90+
"outputDir": "jupyterlab_niryo_one/labextension",
91+
"sharedPackages": {
92+
"jupyterlab-blockly": {
93+
"bundled": false,
94+
"singleton": true
95+
},
96+
"blockly": {
97+
"bundled": false,
98+
"singleton": true
99+
}
100+
}
91101
},
92102
"jupyter-releaser": {
93103
"hooks": {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
zip_safe=False,
5555
include_package_data=True,
5656
python_requires=">=3.7",
57-
install_requires=['jupyterlab-blockly>=0.1.0a5,<0.2'],
57+
install_requires=['jupyterlab-blockly>=0.1.1,<0.2'],
5858
extras_require={
5959
'env': ['pyniryo']
6060
},

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
JupyterFrontEndPlugin
44
} from '@jupyterlab/application';
55

6-
import { IBlocklyRegisty } from 'jupyterlab-blockly';
6+
import { IBlocklyRegistry } from 'jupyterlab-blockly';
77

88
import BlocklyNiryo from './niryo_one_python_generators';
99

@@ -13,8 +13,8 @@ import BlocklyNiryo from './niryo_one_python_generators';
1313
const plugin: JupyterFrontEndPlugin<void> = {
1414
id: 'jupyterlab-niryo-one:plugin',
1515
autoStart: true,
16-
requires: [IBlocklyRegisty],
17-
activate: (app: JupyterFrontEnd, blockly: IBlocklyRegisty) => {
16+
requires: [IBlocklyRegistry],
17+
activate: (app: JupyterFrontEnd, blockly: IBlocklyRegistry) => {
1818
console.log('JupyterLab extension jupyterlab-niryo-one is activated!');
1919

2020
//Registering the new toolbox containing all Niryo One blocks.

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3737,10 +3737,10 @@ jsprim@^1.2.2:
37373737
json-schema "0.4.0"
37383738
verror "1.10.0"
37393739

3740-
jupyterlab-blockly@^0.1.0:
3741-
version "0.1.0"
3742-
resolved "https://registry.yarnpkg.com/jupyterlab-blockly/-/jupyterlab-blockly-0.1.0.tgz#9c5d388f96d6cec57859d04868c6976c5db89170"
3743-
integrity sha512-SAmoM9imtbHONnu9BQNiNSto/cuS2agPbQ4FSOB7iOLDj4XOZClxCOspPO77hGQFODU/6guYB0uYsis/7Jrdbg==
3740+
jupyterlab-blockly@^0.1.1:
3741+
version "0.1.1"
3742+
resolved "https://registry.yarnpkg.com/jupyterlab-blockly/-/jupyterlab-blockly-0.1.1.tgz#829738ed96f0da0032ea3733b48ce8deb2046a08"
3743+
integrity sha512-zU73Omvg86QzjtXlLZncR+W4sHfmDmL2pId8qeCZfkDczfIX6tlduJcw7eKyqa7eHWHox77VL8B5IrF99Uzp4w==
37443744
dependencies:
37453745
"@jupyterlab/apputils" "^3.4"
37463746
"@jupyterlab/cells" "^3.4"

0 commit comments

Comments
 (0)