Giter Club home page Giter Club logo

Comments (10)

glwagner avatar glwagner commented on June 5, 2024

I think you're talking about this line

Label(fig[1, 1:2], title, fontsize=24, tellwidth=false)

from oceananigans.jl.

glwagner avatar glwagner commented on June 5, 2024

This might be a symptom of the fact that we don't have a Project.toml for examples... (or compat)... can you try updating CairoMakie to the latest version and confirm you get this error? Or let us know what version / packages you are using?

from oceananigans.jl.

navidcy avatar navidcy commented on June 5, 2024

waywardpidgeon, I think it's because of incompatibility of the CairoMakie version we use to build the docs (for the latest stable release that's 0.10.11

[[deps.CairoMakie]]
deps = ["Base64", "Cairo", "Colors", "FFTW", "FileIO", "FreeType", "GeometryBasics", "LinearAlgebra", "Makie", "PrecompileTools", "SHA"]
git-tree-sha1 = "74384dc4aba2b377e22703e849154252930c434d"
uuid = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
version = "0.10.11"

and the one you are using. Which CairoMakie/GLMakie version are you using?

from oceananigans.jl.

waywardpidgeon avatar waywardpidgeon commented on June 5, 2024

Apologies - other urgent work and family needs have delayed me. I'm using
Julia 1.9.3
CairoMakie v0.9.4
and have in my status report
GLMakie v0.7.4 and Makie v0.18.4

I tried to use update with the pkg manager to no effect, but see I should be using [email protected], which I am now installing.
This was not successful. For example the file S7LmV_3TYIX.dll would not load giving a permission denied error, but my check of the properties/security did not reveal a deficiency.

However, the example worked fine.

Many thanks - Kevin

from oceananigans.jl.

navidcy avatar navidcy commented on June 5, 2024

If you start a clean project and install Oceananigans then you should be able to install GLMakie v0.9 or CairoMakie v0.11 and things should work seamlessly.

Anyway thanks. Since you mention the example works fine I'll consider this issue closed.

from oceananigans.jl.

glwagner avatar glwagner commented on June 5, 2024

@navidcy I think @waywardpidgeon is saying that run!(simulation) succeeds, but the plotting afterwards does not...

We may want to make some comment about clean environments somewhere. Or, make this process more robust

from oceananigans.jl.

navidcy avatar navidcy commented on June 5, 2024

I'm wondering if it'd be helpful to print out at the end of every documented example the output of

julia> using Pkg; Pkg.status()
Status `~/Oceananigans.jl/docs/Project.toml`
  [13f3f980] CairoMakie v0.11.6
  [e30172f5] Documenter v1.2.1
  [daee34ce] DocumenterCitations v1.3.2
  [033835bb] JLD2 v0.4.45
  [98b081ad] Literate v2.16.1
  [442fdcdd] Measures v0.3.2
⌅ [85f8d34a] NCDatasets v0.13.2
  [9e8cae18] Oceananigans v0.90.6 `~/Oceananigans.jl`
  [f27b6e38] Polynomials v4.0.6
  [bdfc003b] TimesDates v0.3.1
  [37e2e46d] LinearAlgebra

so people would know what versions of packages were used for that example.

from oceananigans.jl.

glwagner avatar glwagner commented on June 5, 2024

What about having an environment for the examples?

from oceananigans.jl.

navidcy avatar navidcy commented on June 5, 2024

Hm. It’s the environment that the docs are built with. But it’s bit cumbersome to figure out.

If we have a separate env for the examples then we need to ensure that the docs built those examples with that environment. I’ll see if that’s possible.

from oceananigans.jl.

glwagner avatar glwagner commented on June 5, 2024

Yeah, plus the docs environment has many more things that aren't needed for the examples?

from oceananigans.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.