-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from open-space-collective/dev@lucas
[misc] Improve JupyterLab configuration
- Loading branch information
Showing
3 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
Library ▸ Core ▸ Bindings ▸ Python | ||
================================== | ||
================================== | ||
|
||
Fundamental types, containers and utilities. | ||
|
||
[![Build Status](https://travis-ci.com/open-space-collective/library-core.svg?branch=master)](https://travis-ci.com/open-space-collective/library-core) | ||
[![Code Coverage](https://codecov.io/gh/open-space-collective/library-core/branch/master/graph/badge.svg)](https://codecov.io/gh/open-space-collective/library-core) | ||
[![Documentation](https://img.shields.io/readthedocs/pip/stable.svg)](https://open-space-collective.github.io/library-core) | ||
[![GitHub version](https://badge.fury.io/gh/open-space-collective%2Flibrary-core.svg)](https://badge.fury.io/gh/open-space-collective%2Flibrary-core) | ||
[![PyPI version](https://badge.fury.io/py/LibraryCorePy.svg)](https://badge.fury.io/py/LibraryCorePy) | ||
|
||
[Library ▸ Core](https://github.com/open-space-collective/library-core) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,6 @@ LABEL maintainer="[email protected]" | |
|
||
USER root | ||
|
||
# RUN apt-get update \ | ||
# && apt-get install libboost-python1.65.1 \ | ||
# && apt-get clean \ | ||
# && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN ln -s /opt/conda/include/python3.6m /opt/conda/include/python3.6 | ||
|
||
RUN cd /tmp \ | ||
|
@@ -29,6 +24,15 @@ RUN cd /tmp \ | |
&& ./b2 --with-python -j 8 install \ | ||
&& rm -rf /tmp/boost_1_68_0 | ||
|
||
RUN jupyter labextension install @jupyterlab/plotly-extension | ||
|
||
RUN python -m pip install --quiet numpy --upgrade \ | ||
&& python -m pip install --quiet plotly | ||
|
||
COPY ./shortcuts-extension /home/jovyan/.jupyter/lab/user-settings/@jupyterlab/shortcuts-extension | ||
|
||
RUN chown -R $NB_UID:$NB_UID /home/jovyan/.jupyter | ||
|
||
USER $NB_UID | ||
|
||
################################################################################################################################################################ |
72 changes: 72 additions & 0 deletions
72
tools/python/docker/shortcuts-extension/plugin.jupyterlab-settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
|
||
"editmenu:clear-all": | ||
{ | ||
"command": "editmenu:clear-all", | ||
"keys": | ||
[ | ||
"Ctrl Shift Delete" | ||
], | ||
"selector": "[data-jp-undoer]", | ||
"title": "Clear All", | ||
"category": "Editing" | ||
}, | ||
|
||
"kernelmenu:restart-and-clear": | ||
{ | ||
"command": "kernelmenu:restart-and-clear", | ||
"keys": | ||
[ | ||
"1", | ||
"1" | ||
], | ||
"selector": "[data-jp-kernel-user]:focus", | ||
"title": "Restart Kernel and Clear", | ||
"category": "Kernel Operations" | ||
}, | ||
|
||
"notebook:run-all-above": | ||
{ | ||
"command": "notebook:run-all-above", | ||
"keys": | ||
[ | ||
"Ctrl Alt Enter" | ||
], | ||
"selector": "[data-jp-undoer]", | ||
"title": "Clear All", | ||
"category": "Editing" | ||
}, | ||
|
||
"notebook:run-all-below": | ||
{ | ||
"command": "notebook:run-all-below", | ||
"keys": | ||
[ | ||
"Ctrl Shift Enter" | ||
], | ||
"selector": "[data-jp-undoer]", | ||
"title": "Clear All", | ||
"category": "Editing" | ||
}, | ||
|
||
"notebook:move-cell-up": | ||
{ | ||
"selector": ".jp-Notebook:focus", | ||
"command": "notebook:move-cell-up", | ||
"keys": | ||
[ | ||
"Ctrl ArrowUp" | ||
] | ||
}, | ||
|
||
"notebook:move-cell-down": | ||
{ | ||
"selector": ".jp-Notebook:focus", | ||
"command": "notebook:move-cell-down", | ||
"keys": | ||
[ | ||
"Ctrl ArrowDown" | ||
] | ||
} | ||
|
||
} |