# Inline julia.magic kills Jupyter notebook (only on Linux) \[pyjulia\]

**URL:** <https://discourse.julialang.org/t/inline-julia-magic-kills-jupyter-notebook-only-on-linux-pyjulia/86208>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [August 23, 2022, 4:01pm UTC](https://discourse.julialang.org/t/inline-julia-magic-kills-jupyter-notebook-only-on-linux-pyjulia/86208 "2022-08-23T16:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apigott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/apigott/32/38583_2.png) [@apigott](https://discourse.julialang.org/u/apigott)\
**Post date:** [August 23, 2022, 4:01pm UTC](https://discourse.julialang.org/t/inline-julia-magic-kills-jupyter-notebook-only-on-linux-pyjulia/86208/1 "2022-08-23T16:01:22Z")

</div>

I’ve noticed that Julia’s performance seems much better on my Linux partition than my Windows one (same GPU, Windows runs on my SSD while Linux is on and HDD). I was hoping to work on a project I have that’s partially written in Python and partially in Julia but loading inline Julia in my Jupyter notebook on Linux always kills the kernel.

```julia
import juila
%load_ext julia.magic

```

fails.

I got the error about statically linked Python and tried loading the API without compiled modules.

```julia
from julia.api import Julia
j = Julia(compiled_modeuls=False)

```

also fails.

Any hints?

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [August 23, 2022, 4:06pm UTC](https://discourse.julialang.org/t/inline-julia-magic-kills-jupyter-notebook-only-on-linux-pyjulia/86208/2 "2022-08-23T16:06:11Z")

</div>

> [@apigott](#):
>
> Linux partition

Is that an actual partition, i.e. real Linux (as in distro) dual-booting? Or did you mean WSL2 (also “real” Linux [kernel], but not yet tier 1 support in Julia)? It seems not, but worth to try both.

I don’t know much about this, but maybe it applies for you to use juliacall from PythonCall.jl instead of pyjulia?

---

<div class="post-metadata">

**Author:** ![apigott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/apigott/32/38583_2.png) [@apigott](https://discourse.julialang.org/u/apigott)\
**Post date:** [August 23, 2022, 4:25pm UTC](https://discourse.julialang.org/t/inline-julia-magic-kills-jupyter-notebook-only-on-linux-pyjulia/86208/3 "2022-08-23T16:25:01Z")

</div>

It’s a real Linux _partition_ with partitioned disk space booted as “Fedora” from the UEFI screen. I’ll attempt with JuilaCall…
