Skip to content

Commit 97b7be6

Browse files
mesonepigrecoclaude
andcommitted
README: install the julia interface through juliacall
Describe the juliacall setup in the manual installation (automatic julia download, how to use an existing julia). PyJulia and PyCall are no longer needed, also by tdscha (from version 1.6.2). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit ae9865a)
1 parent 921be20 commit 97b7be6

1 file changed

Lines changed: 12 additions & 23 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -107,42 +107,31 @@ To activate the environment and execute the SSCHA, run
107107
The SSCHA benefits from Julia being installed in the system. If present,
108108
it will be automatically used to speedup the calculation.
109109

110-
To install Julia, refer to the official website [julialang.org/downloads/](https://julialang.org/downloads/)
111-
Alternatively, to install Julia on Linux we can employ JuliaUp:
112-
113-
```
114-
curl -fsSL https://install.julialang.org | sh
115-
```
116-
117-
Hit enter when asked to install Julia.
118-
119-
Then, install the python bindings for julia with
110+
The python-julia interface is provided by [juliacall](https://github.com/JuliaPy/PythonCall.jl)
111+
(PyJulia is no longer required). Install it with
120112

121113
```
122114
pip install juliacall
123115
```
124116

125-
The tdscha extension to compute Raman and IR requires some additional julia packages that can be installed within a julia terminal. Update your configuration to have access to the newly installed julia
117+
There is no need to install Julia manually: the first time it is needed, juliacall downloads
118+
Julia and the required Julia packages automatically. You can trigger (and check) this step with
126119

127120
```
128-
source ~/.bashrc
129-
```
130-
131-
Then, open a terminal and type `julia`. Inside the julia prompt, type `]`. The prompt should change color and display the julia version ending with `pkg>`
132-
133-
Install the required julia libraries
134-
135-
```
136-
pkg> add SparseArrays, LinearAlgebra, InteractiveUtils, PyCall
121+
python -c 'import sscha.JuliaExt as J; J.get_main()'
137122
```
138123

139-
This should install the required libraries. Press backspace to return to the standard Julia prompt and exit with
124+
If you prefer to use a Julia already installed in the system (e.g. from [julialang.org/downloads/](https://julialang.org/downloads/)
125+
or JuliaUp), point juliacall to the Julia executable (not the JuliaUp launcher) and to a Julia environment:
140126

141127
```
142-
julia> exit()
128+
export PYTHON_JULIACALL_EXE=/path/to/julia/bin/julia
129+
export PYTHON_JULIACALL_PROJECT=/path/to/a/julia/environment
143130
```
144131

145-
Now, you should be able to exploit the Julia speedup in the TDSCHA calculations. It is not required to install Julia before TDSCHA; it can also be done at a later time.
132+
The tdscha extension to compute Raman and IR (from version 1.6.2) uses the same juliacall interface,
133+
and the required Julia packages are installed automatically: no further setup is needed.
134+
It is not required to install Julia before TDSCHA; it can also be done at a later time.
146135

147136

148137
### Compiling SSCHA

0 commit comments

Comments
 (0)