# How to pass julia flags while calling Julia from Python

**URL:** <https://discourse.julialang.org/t/how-to-pass-julia-flags-while-calling-julia-from-python/3064>\
**Category:** General Usage\
**Tags:** pycall\
**Created:** [April 5, 2017, 2:04pm UTC](https://discourse.julialang.org/t/how-to-pass-julia-flags-while-calling-julia-from-python/3064 "2017-04-05T14:04:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan\_Aggarwal](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@Karan\_Aggarwal](https://discourse.julialang.org/u/Karan_Aggarwal)\
**Post date:** [April 5, 2017, 2:04pm UTC](https://discourse.julialang.org/t/how-to-pass-julia-flags-while-calling-julia-from-python/3064/1 "2017-04-05T14:04:27Z")

</div>

I am trying to call julia from python code. Everything is working fine but know I need to pass julia arguments such as **-O3 ,-compile=yes and–output-o** flags. How can I pass these flags from python so that it works in julia.

Normally we would pass flags like

> julia -O3 -compile=yes test.jl

but in python we call julia like

> jl=julia.Julia()

So how would we pass arguments in this case
