# Efficiency for calling Julia from python and purely run Julia

**URL:** <https://discourse.julialang.org/t/efficiency-for-calling-julia-from-python-and-purely-run-julia/81484>\
**Category:** General Usage\
**Created:** [May 23, 2022, 3:16am UTC](https://discourse.julialang.org/t/efficiency-for-calling-julia-from-python-and-purely-run-julia/81484 "2022-05-23T03:16:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Geositta](https://avatars.discourse-cdn.com/v4/letter/g/e5b9ba/32.png) [@Geositta](https://discourse.julialang.org/u/Geositta)\
**Post date:** [May 23, 2022, 9:56pm UTC](https://discourse.julialang.org/t/efficiency-for-calling-julia-from-python-and-purely-run-julia/81484/9 "2022-05-23T21:56:58Z")

</div>

Thanks. I tried to follow [Creating a sysimage for fast plotting with Plots.jl · PackageCompiler](https://julialang.github.io/PackageCompiler.jl/dev/examples/plots.html) and failed at `create_sysimage(["Plots"], sysimage_path="sys_plots.so", precompile_execution_file="precompile_plots.jl")`. (I have created `precompile_plots.jl`)

I got

```julia
connect: Connection refused
GKS: can't connect to GKS socket application

GKS: Open failed in routine OPEN_WS

```

and leads to

```julia
⠸ [01m:02s] PackageCompiler: compiling incremental system image

```

keep on running seems forever

I tried to fix the `GKS` issue from [GR can't connect on Windows - #3 by jbreeden](https://discourse.julialang.org/t/gr-cant-connect-on-windows/58371/3)  
the last reply.  
then rerun  
`create_sysimage(["Plots"], sysimage_path="sys_plots.so", precompile_execution_file="precompile_plots.jl")`  
I got  
`[ Info: PackageCompiler: Executing /mnt/c/.../precompile_plots.jl => /tmp/jl_packagecompiler_n2iAWn/jl_Y2asBo`  
forever

If I close windows subsystem linux, reopen, and rerun julia, still the same ☹

---

_[View the full topic](https://discourse.julialang.org/t/efficiency-for-calling-julia-from-python-and-purely-run-julia/81484)._
