From 8d8e91b15d76ab7cf7679f6e3a05414efccc73ff Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Thu, 19 Sep 2024 10:47:05 +0100 Subject: [PATCH 1/4] try to fix local version of julia --- demo.qmd | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/demo.qmd b/demo.qmd index 8b06288..0a8d9f3 100644 --- a/demo.qmd +++ b/demo.qmd @@ -1,3 +1,21 @@ +--- +engine: julia +--- + +```{julia} +# import RCall +import Pkg +Pkg.add("GeoDataFrames") +Pkg.add("Plots") + +# Install from toml file: +Pkg.instantiate() +import Pkg +Pkg.add("RCall") +using RCall +``` + + ::: {.panel-tabset group="language"} @@ -23,7 +41,6 @@ world.plot() ## Julia ```{julia} -import Pkg; Pkg.add("GeoDataFrames") using GeoDataFrames world = GeoDataFrames.read("world.gpkg") ``` From 8879eed0ddc2660ec78def8e42b923b215f20653 Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Thu, 19 Sep 2024 10:59:50 +0100 Subject: [PATCH 2/4] Try IJulia --- demo.qmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/demo.qmd b/demo.qmd index 0a8d9f3..731d64b 100644 --- a/demo.qmd +++ b/demo.qmd @@ -1,5 +1,5 @@ --- -engine: julia +jupyter: julia-1.8 --- ```{julia} @@ -13,6 +13,10 @@ Pkg.instantiate() import Pkg Pkg.add("RCall") using RCall +using Pkg +Pkg.add("IJulia") +using IJulia +# notebook() ``` From b5c364706560a8cff83d91fdfccbc4d7708dac98 Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Thu, 19 Sep 2024 11:13:49 +0100 Subject: [PATCH 3/4] Add Ijulia --- Project.toml | 1 + demo.qmd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index ba693c5..0abb9f6 100644 --- a/Project.toml +++ b/Project.toml @@ -5,5 +5,6 @@ GeoDataFrames = "62cb38b5-d8d2-4862-a48e-6a340996859f" GeoInterface = "cf35fbd7-0cd7-5166-be24-54bfbe79505f" GeoMakie = "db073c08-6b98-4ee5-b6a4-5efafb3259c6" GeometryOps = "3251bfac-6a57-4b6d-aa61-ac1fef2975ab" +IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" RCall = "6f49c342-dc21-5d91-9882-a32aef131414" diff --git a/demo.qmd b/demo.qmd index 731d64b..2ab9976 100644 --- a/demo.qmd +++ b/demo.qmd @@ -1,5 +1,5 @@ --- -jupyter: julia-1.8 +jupyter: julia-1.10 --- ```{julia} From 05d3ec18c97294ab9a735fac73722dfc15a73b38 Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Thu, 19 Sep 2024 12:22:20 +0100 Subject: [PATCH 4/4] Try code from @evetion --- .github/workflows/publish.yml | 4 +--- Project.toml | 1 + demo.qmd | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3a63d2b..b9f8ccc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,9 +39,7 @@ jobs: - name: Install Julia uses: julia-actions/setup-julia@v2 - with: - version: '1.10' - project: '.' + uses: julia-actions/julia-buildpkg@v1 - name: Render and Publish uses: quarto-dev/quarto-actions/publish@v2 diff --git a/Project.toml b/Project.toml index 0abb9f6..f391160 100644 --- a/Project.toml +++ b/Project.toml @@ -7,4 +7,5 @@ GeoMakie = "db073c08-6b98-4ee5-b6a4-5efafb3259c6" GeometryOps = "3251bfac-6a57-4b6d-aa61-ac1fef2975ab" IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" +PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" RCall = "6f49c342-dc21-5d91-9882-a32aef131414" diff --git a/demo.qmd b/demo.qmd index 2ab9976..349329a 100644 --- a/demo.qmd +++ b/demo.qmd @@ -1,5 +1,6 @@ --- -jupyter: julia-1.10 +# jupyter: julia-1.10 +engine: julia --- ```{julia}