mirror of
https://gitlab.gwdg.de/j.hahn02/ws-numerik.git
synced 2026-03-01 19:32:42 +01:00
Add julia support and example
This commit is contained in:
1096
Manifest.toml
Normal file
1096
Manifest.toml
Normal file
File diff suppressed because it is too large
Load Diff
2
Project.toml
Normal file
2
Project.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[deps]
|
||||||
|
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
|
||||||
15
justfile
15
justfile
@@ -10,12 +10,19 @@ setup:
|
|||||||
test:
|
test:
|
||||||
uv run python main.py
|
uv run python main.py
|
||||||
|
|
||||||
|
# Run code that generates output
|
||||||
|
output: ensure-build
|
||||||
|
julia --project=. main.jl
|
||||||
|
|
||||||
# Build document and open in zathura
|
# Build document and open in zathura
|
||||||
build:
|
build: output
|
||||||
rm main.pdf
|
rm main.pdf || true
|
||||||
typst compile main.typ
|
typst compile main.typ build/main.pdf
|
||||||
zathura main.pdf >/dev/zero 2>&1 & disown
|
zathura build/main.pdf >/dev/zero 2>&1 & disown
|
||||||
|
|
||||||
# Format code in place
|
# Format code in place
|
||||||
format:
|
format:
|
||||||
typstyle -i main.typ
|
typstyle -i main.typ
|
||||||
|
|
||||||
|
ensure-build:
|
||||||
|
mkdir -p build
|
||||||
|
|||||||
5
main.jl
Normal file
5
main.jl
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
using Plots
|
||||||
|
|
||||||
|
plot(sin)
|
||||||
|
savefig("build/sine.svg")
|
||||||
|
gui()
|
||||||
Reference in New Issue
Block a user