A monorepo containing jupyter-blocks and jupyter-tidyblocks. Blockly extension for JupyterLab.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #14 from hbcarlos/fix-build-workflow

Fix Build workflow

authored by

Carlos Herrero and committed by
GitHub
7621d106 3aae241a

+27 -26
+5 -4
.github/workflows/build.yml
··· 14 14 uses: actions/checkout@v2 15 15 16 16 - name: Base Setup 17 - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 17 + uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 18 18 19 19 - name: Install dependencies 20 - run: python -m pip install -U jupyterlab~=3.1 check-manifest 20 + run: python -m pip install -U check-manifest jupyterlab --pre 21 21 22 22 - name: Build the extension 23 23 run: | ··· 26 26 jlpm run eslint:check 27 27 python -m pip install . 28 28 29 + jupyter labextension list 29 30 jupyter labextension list 2>&1 | grep -ie "jupyterlab-blockly.*OK" 30 31 python -m jupyterlab.browser_check 31 32 ··· 64 65 sudo rm -rf $(which node) 65 66 sudo rm -rf $(which node) 66 67 pip install myextension.tar.gz 67 - pip install jupyterlab 68 + pip install jupyterlab --pre 68 69 jupyter labextension list 2>&1 | grep -ie "jupyterlab-blockly.*OK" 69 - python -m jupyterlab.browser_check --no-chrome-test 70 + python -m jupyterlab.browser_check --no-browser-test
+1 -1
README.md
··· 13 13 14 14 ## Requirements 15 15 16 - * JupyterLab >= 3.0 16 + * JupyterLab >= 4.0.0a0 17 17 18 18 ## Install 19 19
+1 -1
package.json
··· 84 84 "jupyter-releaser": { 85 85 "hooks": { 86 86 "before-build-npm": [ 87 - "python -m pip install jupyterlab~=3.1", 87 + "python -m pip install jupyterlab --pre", 88 88 "jlpm" 89 89 ] 90 90 }
+8 -8
src/layout.ts
··· 39 39 // and the output area to render the execution replies. 40 40 this._host = document.createElement('div'); 41 41 42 - // Creating a SimplifiedOutputArea widget to render the 42 + // Creating a SimplifiedOutputArea widget to render the 43 43 // outputs from the execution reply. 44 - this._outputArea= new SimplifiedOutputArea({ 44 + this._outputArea = new SimplifiedOutputArea({ 45 45 model: new OutputAreaModel({ trusted: true }), 46 46 rendermime 47 47 }); ··· 99 99 // Execute the code using the kernel, by using a static method from the 100 100 // same class to make an execution request. 101 101 SimplifiedOutputArea.execute(code, this._outputArea, this._sessionContext) 102 - .then(resp => { 103 - this.addWidget(this._outputArea); 104 - this._resizeWorkspace(); 105 - }) 106 - .catch(e => console.error(e)); 102 + .then(resp => { 103 + this.addWidget(this._outputArea); 104 + this._resizeWorkspace(); 105 + }) 106 + .catch(e => console.error(e)); 107 107 } 108 108 109 109 /** ··· 130 130 /** 131 131 * Handle `after-attach` messages sent to the widget. 132 132 */ 133 - protected onAfterAttach(msg: Message): void { 133 + protected onAfterAttach(msg: Message): void { 134 134 //inject Blockly with appropiate JupyterLab theme. 135 135 this._workspace = Blockly.inject(this._host, { 136 136 toolbox: this._manager.toolbox,
+12 -12
src/utils.ts
··· 354 354 355 355 // Defining a Blockly Theme in accordance with the current JupyterLab Theme. 356 356 const jupyterlab_theme = Blockly.Theme.defineTheme('jupyterlab', { 357 - 'base': Blockly.Themes.Classic, 358 - 'componentStyles': { 359 - 'workspaceBackgroundColour': 'var(--jp-layout-color0)', 360 - 'toolboxBackgroundColour': 'var(--jp-layout-color2)', 361 - 'toolboxForegroundColour': 'var(--jp-ui-font-color0)', 362 - 'flyoutBackgroundColour': 'var(--jp-border-color2)', 363 - 'flyoutForegroundColour': 'var(--jp-layout-color3)', 364 - 'flyoutOpacity': 1, 365 - 'scrollbarColour': 'var(--jp-border-color0)', 366 - 'insertionMarkerOpacity': 0.3, 367 - 'scrollbarOpacity': 0.4, 368 - 'cursorColour': 'var(--jp-scrollbar-background-color)', 357 + base: Blockly.Themes.Classic, 358 + componentStyles: { 359 + workspaceBackgroundColour: 'var(--jp-layout-color0)', 360 + toolboxBackgroundColour: 'var(--jp-layout-color2)', 361 + toolboxForegroundColour: 'var(--jp-ui-font-color0)', 362 + flyoutBackgroundColour: 'var(--jp-border-color2)', 363 + flyoutForegroundColour: 'var(--jp-layout-color3)', 364 + flyoutOpacity: 1, 365 + scrollbarColour: 'var(--jp-border-color0)', 366 + insertionMarkerOpacity: 0.3, 367 + scrollbarOpacity: 0.4, 368 + cursorColour: 'var(--jp-scrollbar-background-color)' 369 369 } 370 370 }); 371 371