File tree Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,10 @@ RUN julia -e 'using IJulia' && \
87
87
chmod -R 755 /opt/julia/compiled
88
88
SHELL ["/bin/sh" , "-c" ]
89
89
# Install ipython kernelspec
90
- COPY kernel.1.8.json /usr/local/share/jupyter/kernels/julia-1.8/kernel.json
90
+ COPY replace_placeholder.sh /etc/backend.ai/replace_placeholder.sh
91
+ COPY kernel.json /usr/local/share/jupyter/kernels/julia-1.8/kernel.json
92
+ RUN /etc/backend.ai/replace_placeholder.sh && \
93
+ rm /etc/backend.ai/replace_placeholder.sh
91
94
COPY logo-32x32.png /usr/local/share/jupyter/kernels/julia-1.8/logo-32x32.png
92
95
COPY logo-64x64.png /usr/local/share/jupyter/kernels/julia-1.8/logo-64x64.png
93
96
Original file line number Diff line number Diff line change 5
5
" -i" ,
6
6
" --startup-file=yes" ,
7
7
" --color=yes" ,
8
- " /opt/julia/packages/IJulia/6TIq1 /src/kernel.jl" ,
8
+ " /opt/julia/packages/IJulia/[PLACEHOLDER] /src/kernel.jl" ,
9
9
" {connection_file}"
10
10
],
11
11
"language" : " julia" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "display_name" : " FluxML 0.13 on Backend.AI" ,
3
+ "argv" : [
4
+ " /usr/local/julia/bin/julia" ,
5
+ " -i" ,
6
+ " --startup-file=yes" ,
7
+ " --color=yes" ,
8
+ " /opt/julia/packages/IJulia/PLACEHOLDER/src/kernel.jl" ,
9
+ " {connection_file}"
10
+ ],
11
+ "language" : " julia" ,
12
+ "env" : {}
13
+ }
Original file line number Diff line number Diff line change 5
5
" -i" ,
6
6
" --startup-file=yes" ,
7
7
" --color=yes" ,
8
- " /opt/julia/packages/IJulia/6TIq1 /src/kernel.jl" ,
8
+ " /opt/julia/packages/IJulia/PLACEHOLDER /src/kernel.jl" ,
9
9
" {connection_file}"
10
10
],
11
11
"language" : " julia" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ path=" /opt/julia/packages/IJulia"
3
+ first_dir=$( ls -1 " $path " | head -1)
4
+ file=" /usr/local/share/jupyter/kernels/julia-1.8/kernel.json"
5
+ old_string=" PLACEHOLDER"
6
+ sed -i " s/$old_string /$first_dir /g" $file
You can’t perform that action at this time.
0 commit comments