Spaces:
Sleeping
Sleeping
Update on_startup.sh
Browse files- on_startup.sh +7 -1
on_startup.sh
CHANGED
|
@@ -4,4 +4,10 @@
|
|
| 4 |
# git clone https://github.com/huggingface/transformers.git
|
| 5 |
# cd transformers && pip install -e ".[dev]"
|
| 6 |
npm install -g ijavascript
|
| 7 |
-
ijsinstall
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# git clone https://github.com/huggingface/transformers.git
|
| 5 |
# cd transformers && pip install -e ".[dev]"
|
| 6 |
npm install -g ijavascript
|
| 7 |
+
ijsinstall
|
| 8 |
+
go install github.com/gopherdata/gophernotes@v0.7.5
|
| 9 |
+
mkdir -p ~/.local/share/jupyter/kernels/gophernotes
|
| 10 |
+
cd ~/.local/share/jupyter/kernels/gophernotes
|
| 11 |
+
cp "$(go env GOPATH)"/pkg/mod/github.com/gopherdata/gophernotes@v0.7.5/kernel/* "."
|
| 12 |
+
chmod +w ./kernel.json # in case copied kernel.json has no write permission
|
| 13 |
+
sed "s|gophernotes|$(go env GOPATH)/bin/gophernotes|" < kernel.json.in > kernel.json
|