An open API service indexing awesome lists of open source software.

https://github.com/lassepe/hellojuliapythoninterop


https://github.com/lassepe/hellojuliapythoninterop

Last synced: 3 months ago
JSON representation

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)