Skip to content

Commit 9cfcd26

Browse files
committed
major import from local kubernets
1 parent 24be806 commit 9cfcd26

15 files changed

+1846
-397
lines changed

.vscode/keybindings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
[
3+
{
4+
"key": "ctrl+enter",
5+
"command": "workbench.action.terminal.runSelectedText"
6+
}
7+
]

.vscode/settings.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"files.exclude": {
3+
"**/.bashrc": true,
4+
"**/.bash_logout": true,
5+
"**/.wget-hsts": true,
6+
"**/.profile": true,
7+
"**/.cache": true,
8+
"**/.config": true,
9+
"**/.jupyter": true,
10+
"**/.local": true,
11+
"**/.npm": true,
12+
"**/.gitignore": true,
13+
"**/.yarn": true,
14+
"**/.vscode": true,
15+
"**/jupyter_vscode_proxy.egg-info": true
16+
}
17+
}

README.md

+177-7
Large diffs are not rendered by default.

binder/postBuild

+48-29
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,29 @@
44
# jupyter/jupyterlab extensions/kernels #
55
###############################################################
66

7-
# sos installation
8-
python -m sos_notebook.install
9-
jupyter labextension install jupyterlab-sos --no-build
107

11-
# Beaker installation and extension
12-
beakerx install
13-
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
14-
jupyter labextension install beakerx-jupyterlab --no-build
8+
# Beakerx installation
9+
# echo "Beakerx install"
10+
# beakerx install
11+
# echo "Beakerx extensions install"
12+
# jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
13+
# jupyter labextension install beakerx-jupyterlab --no-build
1514

16-
# Git Jupyter/Lab extension
17-
jupyter labextension install @jupyterlab/git --no-build
18-
jupyter serverextension enable --py jupyterlab_git
19-
20-
# Github Jupyter Lab extension
21-
jupyter labextension install @jupyterlab/github --no-build
22-
23-
# Draw.io Jupyter Lab extension
24-
jupyter labextension install jupyterlab-drawio --no-build
25-
26-
# Rise Jupyter extension (presentation mode)
27-
jupyter-nbextension install rise --py --sys-prefix
28-
jupyter-nbextension enable rise --py --sys-prefix
29-
30-
# Plotly Jupyter Lab extension
31-
jupyter labextension install @jupyterlab/plotly-extension --no-build
3215

3316
# Table of contents Jupyter Lab Extension
17+
echo "Table of contents Jupyter Lab extension install"
3418
jupyter labextension install @jupyterlab/toc --no-build
3519

3620
# Jupyter/Jupyterlab extension for proxying internal applications
37-
jupyter serverextension enable --sys-prefix jupyter_server_proxy
38-
jupyter labextension install jupyterlab-server-proxy
21+
# echo "Jupyter/Jupyterlab proxy extension install"
22+
# jupyter serverextension enable --py jupyter_server_proxy
23+
# jupyter labextension install jupyterlab-server-proxy
3924

40-
# JupyterLab extension mimerenderer to render HTML files in IFrame Tab. https://github.com/mflevine/jupyterlab_html
41-
#jupyter labextension install @mflevine/jupyterlab_html --no-build
4225

4326
# Building everything up
44-
jupyter lab build --dev
27+
echo "Building everything up (jupyter lab build)"
28+
jupyter lab build
29+
4530

4631
###############################################################
4732
# moving to a local installation folder #
@@ -50,6 +35,7 @@ jupyter lab build --dev
5035
mkdir ~/resources/local
5136
cd ~/resources/local
5237

38+
5339
###############################################################
5440
# neo4j installation commands #
5541
###############################################################
@@ -70,4 +56,37 @@ mv neo4j-community-${NEO4J_VERSION} neo4j-${NEO4J_VERSION}
7056

7157
# adding bin and sbin to $path
7258
echo "export PATH=\$PATH:\$NEO4J_HOME/bin" >> ~/.bashrc
73-
echo "export PATH=\$PATH:\$NEO4J_HOME/bin" >> ~/.profile
59+
echo "export PATH=\$PATH:\$NEO4J_HOME/bin" >> ~/.profile
60+
61+
62+
63+
64+
###############################################################
65+
# vscode server installation #
66+
###############################################################
67+
68+
cd ~/resources/local
69+
70+
export CODE_SERVER_VERSION=3.3.0
71+
echo "export CODE_SERVER_VERSION=${CODE_SERVER_VERSION}" >> ~/.bashrc
72+
echo "export CODE_SERVER_VERSION=${CODE_SERVER_VERSION}" >> ~/.profile
73+
74+
export CODE_SERVER_HOME=$(pwd)/code-server-${CODE_SERVER_VERSION}
75+
echo "export CODE_SERVER_HOME=${CODE_SERVER_HOME}" >> ~/.bashrc
76+
echo "export CODE_SERVER_HOME=${CODE_SERVER_HOME}" >> ~/.profile
77+
78+
# Download and install VSCode server
79+
# wget -q -O code-server.tar.gz https://github.com/cdr/code-server/releases/download/$CODE_SERVER_VERSION/code-server-$CODE_SERVER_VERSION-linux-x86_64.tar.gz
80+
wget -q -O code-server.tar.gz https://github.com/cdr/code-server/releases/download/v$CODE_SERVER_VERSION/code-server-$CODE_SERVER_VERSION-linux-amd64.tar.gz
81+
tar xzf code-server.tar.gz
82+
# mv code-server-${CODE_SERVER_VERSION}-linux-x86_64 code-server-$CODE_SERVER_VERSION
83+
mv code-server-$CODE_SERVER_VERSION-linux-amd64 code-server-$CODE_SERVER_VERSION
84+
85+
rm -rf code-server.tar.gz
86+
87+
# adding bin/ to $path
88+
echo "export PATH=\$PATH:\$CODE_SERVER_HOME/bin" >> ~/.bashrc
89+
echo "export PATH=\$PATH:\$CODE_SERVER_HOME/bin" >> ~/.profile
90+
91+
source ~/.bashrc
92+

binder/requirements.txt

+19-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
###############################################################
22
# jupyter/jupyterlab extensions/kernels #
33
###############################################################
4-
# beakerx (kernels: java, clojure, groovy, scala, kotlin, sql) and dependencies
5-
beakerx
6-
py4j
4+
# # beakerx (kernels: java, clojure, groovy, scala, kotlin, sql) and dependencies
5+
# beakerx
6+
# py4j
77

8-
# sos - script of scripts (multiple kernels)
9-
sos
10-
sos-notebook
8+
# # sos - script of scripts (multiple kernels)
9+
# sos
10+
# sos-notebook
1111

1212
#jupyter/jupyterlab extensions
1313
jupyterlab
14-
jupyter_contrib_nbextensions
15-
jupyterlab_launcher
16-
jupyterlab-git
1714
ipywidgets
1815
RISE
1916

2017
jupyter-server-proxy
18+
jupyter-vscode-proxy
19+
20+
###############################################################
21+
# /jupyter/jupyterlab extensions/kernels #
22+
###############################################################
23+
24+
pprintpp
25+
2126

2227
###############################################################
2328
# /jupyter/jupyterlab extensions/kernels #
@@ -31,4 +36,8 @@ py2neo
3136
ipython-cypher
3237
networkx
3338
igraph
34-
jgraph
39+
jgraph
40+
41+
42+
43+

binder/start

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/bin/bash
22

33
chmod +x ~/binder/start.neo4j
4+
chmod +x ~/binder/start.vscode
45

56
# starting neo4j
67
~/binder/start.neo4j &
78

9+
# starting adminmongo in parallel
10+
~/binder/start.vscode &
811

912

1013
# DO NOT REMOVE(!)

binder/start.vscode

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
mkdir -p /home/$USER/.config/Code/User
4+
cp ~/.vscode/keybindings.json /home/$USER/.config/Code/User/
5+
6+
mkdir -p /home/$USER/.config/code-server/User
7+
cp ~/.vscode/keybindings.json /home/$USER/.config/code-server/User/
8+
9+
mkdir -p /home/$USER/.local/share/code-server/User/
10+
cp ~/.vscode/keybindings.json /home/$USER/.local/share/code-server/User/
11+
12+
code-server --install-extension lawrencegrant.cql
13+
code-server --install-extension kdcro101.vscode-cassandra
14+
15+
code-server . --auth none &
16+

0 commit comments

Comments
 (0)