-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{python}
support
#255
{python}
support
#255
Conversation
e67a5fb
to
cfdf061
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #255 +/- ##
==========================================
- Coverage 31.42% 30.18% -1.24%
==========================================
Files 55 57 +2
Lines 2457 2591 +134
==========================================
+ Hits 772 782 +10
- Misses 1685 1809 +124 ☔ View full report in Codecov by Sentry. |
0e4b43a
to
5e1fac2
Compare
Adds support for evaluating `{python}` code by running it via `PythonCall.jl`. Users must import `PythonCall` into their notebook for this feature to work. Supports Julia expression interpolation in a similar way to the `{r}` support that is backed by `RCall`.
5e1fac2
to
fa7c690
Compare
I've yet to work out the "correct" way to output multiple plots from a cell, so that Quarto can then do layout (https://quarto.org/docs/authoring/article-layout.html). But what does actually just work is interpolating the ```{python}
p1 = plot(...)
$(display)(p1)
p2 = plot(...)
$(display)(p2)
``` and that'll hook into Julia's display system and correctly render plots, or tables (or whatever else). |
@felixcremer @tuncbkose fyi, this is the latest work towards supporting Python cells in this backend. You were both previously interested in this, so feel free to take this branch for a spin if you get the chance. |
443b675
to
2542d54
Compare
Adds support for evaluating
{python}
code by running it viaPythonCall.jl
.Users must import
PythonCall
into their notebook for this feature to work. Supports Julia expression interpolation in a similar way to the{r}
support that is backed byRCall
.With this we can run notebooks that contain Julia, R, and Python and send values between all three, below we use the iris dataset from R, and pass it to seaborn for plotting. There'll be room to improve the conversion of values between languages, but that can be improved at a later time.
Fixes #108. Replaces #185.