Skip to content

Commit

Permalink
Merge pull request #52 from open-space-collective/dev@lucas
Browse files Browse the repository at this point in the history
[misc] Improve JupyterLab configuration
  • Loading branch information
lucas-bremond authored Sep 20, 2018
2 parents 573a17c + a4749f7 commit bb22945
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 6 deletions.
12 changes: 11 additions & 1 deletion bindings/python/README.md
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)
14 changes: 9 additions & 5 deletions tools/python/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 tools/python/docker/shortcuts-extension/plugin.jupyterlab-settings
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"
]
}

}

0 comments on commit bb22945

Please sign in to comment.