diff --git a/docs/src/index.md b/docs/src/index.md index d10b212b..d011beaf 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -68,8 +68,18 @@ For dynamic languages with JIT, the first time when function gets executed is al ## Calling From Python -In Python, you can easily take advantage of this package with the aid of [PyJulia](https://pyjulia.readthedocs.io/en/latest/). -After the installation, in the Python REPL: +In Python, you can easily take advantage of this package with the aid of [JuliaCall](https://juliapy.github.io/PythonCall.jl/dev/juliacall/) or [PyJulia](https://pyjulia.readthedocs.io/en/latest/). + +With JuliaCall: + +```python +from juliacall import Main as jl +jl.seval("using Batsrus") +file = 'example.out' +data = Batsrus.load(file, dir='test') +``` + +With PyJulia: ```python from julia import Batsrus @@ -78,8 +88,6 @@ file = '1d__raw_2_t25.60000_n00000258.out' data = Batsrus.load(file, dir=dir) ``` -There you have it! Enjoy! - !!! warning "Python dependency" `PyPlot` package backend may be affected by the settings of `PyJulia` dependencies. If you want to set it back properly, you need to recompile the `PyCall` package in Julia. diff --git a/docs/src/man/examples.md b/docs/src/man/examples.md index d5271cc4..02d3b981 100644 --- a/docs/src/man/examples.md +++ b/docs/src/man/examples.md @@ -50,7 +50,7 @@ convertTECtoVTU(head, data, connectivity) 3D structured IDL file (`gridType=1` returns rectilinear `vtr` file, `gridType=2` returns structured `vts` file): ```julia -file3d_structured.out" +file = "3d_structured.out" convertIDLtoVTK(file, gridType=1) ``` @@ -117,9 +117,9 @@ More examples can be found in [examples](https://github.com/henry2004y/Batsrus.j ## Data visualization -We provide plot recipes for Plots.jl and wrappers for PyPlot.jl. +We provide plot recipes for Plots.jl, Makie.jl, and wrappers for PyPlot.jl. -The recipes for Plots.jl will work on all functions given the correct dimensions, e.g. +The recipes for Plots.jl and Makie.jl will work on all kinds of plots given the correct dimensions, e.g. ```julia using Plots