Skip to content

Commit

Permalink
Feat: Enable to register logo image on Jupyter Lab launcher page (lfo…
Browse files Browse the repository at this point in the history
  • Loading branch information
eunos-1128 authored Jul 11, 2024
1 parent 53e4287 commit 7b07412
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ src/libasr/pass/intrinsic_function_registry_util.h
src/lfortran/config.h
src/libasr/config.h
share/jupyter/kernels/fortran/kernel.json
share/jupyter/kernels/fortran/logo-svg.svg
src/runtime/*.o.empty.c
src/runtime/tests/test_abs
src/runtime/tests/test_bit
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ if (WITH_XEUS)
"${CMAKE_CURRENT_BINARY_DIR}/share/jupyter/kernels/fortran/kernel.json"
)

# Generate logo-svg.svg with correct paths
configure_file (
"${CMAKE_CURRENT_SOURCE_DIR}/share/jupyter/kernels/fortran/lfortran-logo.svg"
"${CMAKE_CURRENT_BINARY_DIR}/share/jupyter/kernels/fortran/logo-svg.svg"
)

# Configuration and data directories for Jupyter and LFortran
set(XJUPYTER_DATA_DIR "share/jupyter" CACHE STRING "Jupyter data directory")

Expand Down
97 changes: 97 additions & 0 deletions share/jupyter/kernels/fortran/lfortran-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7b07412

Please sign in to comment.