JuliaPy / JuliaPy/pyjulia

IPython magic-like construct for scripts

Open
#354 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
893
Forks
101
PR merge metrics
No merged PRs in 30d

Description

This is a proposal for something I can implement, but wanted to get some feedback first.

Basically, I find the IPython magic incredibly convenient to pass values back-and-forth between Julia/Python. It'd be nice to have something that works in scripts too. I propose having the function `jl` which takes in a string and executes it just like the IPython magics do. The choice of `jl` is to have a nice symmetry between Julia where you do,

`py" ...Python code... "`

and Python where you'd do,

`jl(" ...Julia code... ")`

The behavior with regards to scope / interpolation / etc would be identical to the Julia magic. Any thoughts?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.