https://github.com/lassepe/hellojuliapythoninterop
https://github.com/lassepe/hellojuliapythoninterop
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lassepe/hellojuliapythoninterop
- Owner: lassepe
- Created: 2021-08-30T12:11:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-30T12:11:19.000Z (almost 4 years ago)
- Last Synced: 2025-03-05T19:59:33.940Z (3 months ago)
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup
1. Setup the poetry environment via `poetry install`
2. Enable the virtual environment; via `direnv allow` or `poetry shell`## Python
In order to call Julia from Python:
3. Setup (just needed once) via python:
```python
import julia
julia.install()
```## Julia
In order to call Python from Julia:
3. `]instantiate` the Julia environment.
# Usage
See examples in `./examples`
# Troubleshooting
### Errors related to `Incompatible libpython`
You may have created the virtual environment from a python binary that does not provide a shared object (i.e. has a static lib instead). This can, for example, happen if you use [python-build](https://github.com/pyenv/pyenv/tree/master/plugins/python-build) via `asdf-python` or `pyenv`. In this case, you have to build with [`--enable-shared`](https://github.com/pyenv/pyenv/tree/master/plugins/python-build#building-with---enable-shared)