JupyterLab-Broccoli †[edit]
- 0.3.x (PyPI, npm)
- JupyterLab 3.6.x, Blockly 9.3.3
- 0.4.5 (PyPI, npm)
- JupyterLab 4.0.x, Blockly 9.3.3
- 0.4.6 (PyPI, npm)
- JupyterLab 4.1.x, Blockly 9.3.3
- 0.5.x (npm)
- JupyterLab 4.0.x, Blockly 10.2.2
Development †[edit]
- npm install を実行すると package.json から package-lock.json ができる?
- jupyterlab-blockly (broccoli) は yarn を使用する
- jupyter labextension list
- jupyter labextension uninstall ......
- jlpm clean
- jlpm cache clean
実際のCommand †[edit]
\rm -r node_modules/ yarn.lock packages/*/node_modules/ */labextension
yarn install
jlpm build
for JupyterLab v4 †[edit]
- ソースコードの表示には InputArea クラスを使用する.
- メニューの追加が大幅(?)変更
Source Code †[edit]
HTMLElememt †[edit]
highlight.js †[edit]
Development of Blocks †[edit]
PIP (PyPI) †[edit]
\rm -r dist
python -m build
twine upload --repository pypi dist/*
jlpm build
cd packages/blockly
npm publish --access public
Blockly 9.3.3 †[edit]
Blockly 10.2.2 †[edit]
- generator の登録に変更があった模様.
- jupyterlab-broccoli 0.5.0 で関数の上書きができない.
Trouble Shooting †[edit]
jlpm build †[edit]
Class 'RenderedCommon' incorrectly implements interface 'IRenderer' †[edit]
- tsconfig.json に "skipLibCheck": true を追加.
error TS2320: Interface 'ElementClass' cannot simultaneously extend types †[edit]
- package.json で react 18.2.0 ではなく,@types/react 18.0.26 を指定.
BlocklyPy.statementToCode(block, 'Do')
BlocklyPy.valueToCode
'check': 'Boolean',
'check': 'Number',
'check': 'String',
'check': 'Array',
'check': ['String', 'Array']