-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add
getting started
guide (#98)
* move images * add getting started docs * move assets * add how to notes * add installation instructions * rename site
- Loading branch information
Showing
8 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Getting started | ||
|
||
Let's assume that both Python and Julia are installed. | ||
|
||
## Installation | ||
|
||
It is recommended to use [conda](https://conda.io/projects/conda/en/latest/user-guide/getting-started.html) virtul environment. | ||
|
||
## Using Julia Awkward Arrays from Python | ||
|
||
- To install [Awkward Array](https://github.com/scikit-hep/awkward) Python package: | ||
|
||
```python | ||
conda install -c conda-forge awkward | ||
``` | ||
- To install [JuliaCall](https://juliapy.github.io/PythonCall.jl): | ||
|
||
```python | ||
conda install pyjuliacall | ||
``` | ||
JuliaCall takes care of installing all necessary Julia packages, including this package. | ||
|
||
```python | ||
import awkward as ak | ||
from juliacall import Main as jl | ||
|
||
jl.seval("using AwkwardArray") | ||
``` | ||
|
||
## Using Python Awkward Arrays from Julia | ||
|
||
[PythonCall](https://github.com/JuliaPy/PythonCall.jl) is currently configured to use the Julia-specific Python distribution | ||
installed by the [CondaPkg.jl](https://github.com/JuliaPy/CondaPkg.jl) package. | ||
|
||
```julia | ||
using CondaPkg | ||
CondaPkg.add("awkward") | ||
``` | ||
|
||
```julia | ||
using PythonCall | ||
|
||
const ak = pyimport("awkward") | ||
|
||
println(ak.__version__) | ||
2.6.4 | ||
``` | ||
|
||
See [Examples](@ref). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# How to build documentation locally | ||
|
||
```julia | ||
julia --project=docs/ docs/make.jl | ||
``` |