From cbfdbaa4eb996716dc5736d356e56567784e449b Mon Sep 17 00:00:00 2001 From: Meik Hellmund Date: Sun, 12 May 2024 19:10:03 +0200 Subject: [PATCH] Tricks&help: update --- .gitignore | 2 ++ .luarc.json | 22 ---------------------- _environment | 1 + chapters/5_TricksHelp.qmd | 15 +++++++-------- 4 files changed, 10 insertions(+), 30 deletions(-) delete mode 100644 .luarc.json create mode 100644 _environment diff --git a/.gitignore b/.gitignore index 7a7bc95..cef653a 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,6 @@ index.pdf.md index.html.md Julia*tex xelatex.py +.luarc.json + /.luarc.json diff --git a/.luarc.json b/.luarc.json deleted file mode 100644 index b0d5b85..0000000 --- a/.luarc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Generator": [ - "Quarto", - "This file provides type information for Lua completion and diagnostics.", - "Quarto will automatically update this file to reflect the current path", - "of your Quarto installation, and the file will also be added to .gitignore", - "since it points to the absolute path of Quarto on the local system.", - "Remove the 'Generator' key to manage this file's contents manually." - ], - "Lua.runtime.version": "Lua 5.3", - "Lua.workspace.checkThirdParty": false, - "Lua.workspace.library": [ - "/home/hellmund/W/quarto-cli/src/resources/lua-types" - ], - "Lua.runtime.plugin": "/home/hellmund/W/quarto-cli/src/resources/lua-plugin/plugin.lua", - "Lua.completion.showWord": "Disable", - "Lua.completion.keywordSnippet": "Both", - "Lua.diagnostics.disable": [ - "lowercase-global", - "trailing-space" - ] -} \ No newline at end of file diff --git a/_environment b/_environment new file mode 100644 index 0000000..f825b29 --- /dev/null +++ b/_environment @@ -0,0 +1 @@ +QUARTO_JULIA_PROJECT=/home/hellmund/G/QuartoNotebookRunner.jl diff --git a/chapters/5_TricksHelp.qmd b/chapters/5_TricksHelp.qmd index daba91b..20e4406 100644 --- a/chapters/5_TricksHelp.qmd +++ b/chapters/5_TricksHelp.qmd @@ -1,7 +1,5 @@ # Arbeit mit Julia: REPL, Pakete, Introspection - - ## Dokumentation Die offizielle Julia-Dokumentation [https://docs.julialang.org/](https://docs.julialang.org/) enthält zahlreiche Übersichten, darunter: @@ -32,7 +30,7 @@ Der REPL hat verschiedene Modi: | Modus | Prompt | Modus starten | Modus verlassen | | :- | :- | :- | :- | -| default| `julia>` | | `Ctrl-d`| +| default| `julia>` | | `Ctrl-d` (beendet Julia) | | Package manager | `pkg>` | `]` | `backspace` | | Help | `help?>` | `?`| `backspace `| |Shell | `shell>` | `;` | `backspace`| @@ -114,11 +112,12 @@ Wichtiger Teil des _Julia Ecosystems_ sind die zahlreichen Pakete, die Julia erw - Im Normalfall sieht das so aus: ``` -(@v1.8) pkg> status - Status `~/.julia/environments/v1.8/Project.toml` - [1dea7af3] OrdinaryDiffEq v6.7.1 - [91a5bcdd] Plots v1.27.1 - [438e738f] PyCall v1.93.1 +(@v1.10) pkg> status + Status `~/.julia/environments/v1.10/Project.toml` + [6e4b80f9] BenchmarkTools v1.5.0 + [5fb14364] OhMyREPL v0.5.24 + [91a5bcdd] Plots v1.40.4 + [295af30f] Revise v3.5.14 ``` - Man kann für verschiedene Projekte eigene `environments` benutzen. Dazu kann man entweder Julia mit