# How can I call Julia's StaticArrays.SMatrix from Python

**URL:** <https://discourse.julialang.org/t/how-can-i-call-julias-staticarrays-smatrix-from-python/91660>\
**Category:** General Usage\
**Tags:** question\
**Created:** [December 14, 2022, 11:18pm UTC](https://discourse.julialang.org/t/how-can-i-call-julias-staticarrays-smatrix-from-python/91660 "2022-12-14T23:18:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bd1](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bd1](https://discourse.julialang.org/u/bd1)\
**Post date:** [December 14, 2022, 11:18pm UTC](https://discourse.julialang.org/t/how-can-i-call-julias-staticarrays-smatrix-from-python/91660/1 "2022-12-14T23:18:34Z")

</div>

I am trying to run Julia code from Python using `PyJulia`. I am confused about how should I run

```julia
mat = SMatrix{2, 2}([1 2; 3 4])

```

in Python? I was trying

```python
from julia import StaticArrays as sa

mat = sa.SMatrix{2, 2}([1 2; 3 4])

```

and as I expected, I get the error

```nohighlight
*** SyntaxError: invalid syntax

```

Any idea what I should do?

Thanks in advance!
