File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ which can be used in a customized setup.
65
65
66
66
### High-level interface
67
67
68
- To call a Julia function in Julia module, import the Julia module (say
69
- ` Base ` ) by :
68
+ To call a Julia function in a Julia module, import the Julia module
69
+ (say ` Base ` ) with :
70
70
71
71
``` python
72
72
from julia import Base
@@ -99,17 +99,18 @@ You can set names in this module to send Python values to Julia:
99
99
Main.xs = [1 , 2 , 3 ]
100
100
```
101
101
102
- so that, e.g., it can be evaluated at Julia side using Julia syntax:
102
+ which allows it to be accessed directly from Julia code, e.g., it can
103
+ be evaluated at Julia side using Julia syntax:
103
104
104
105
``` python
105
106
Main.eval(" sin.(xs)" )
106
107
```
107
108
108
109
### Low-level interface
109
110
110
- If you need a custom setup for ` pyjulia ` , it must be done * before* any
111
- imports of Julia modules. For example, to use Julia interpreter at
112
- ` PATH/TO/MY/CUSTOM/julia ` , run:
111
+ If you need a custom setup for ` pyjulia ` , it must be done * before*
112
+ importing any Julia modules. For example, to use the Julia
113
+ interpreter at ` PATH/TO/MY/CUSTOM/julia ` , run:
113
114
114
115
``` python
115
116
from julia import Julia
You can’t perform that action at this time.
0 commit comments