Could I use Python Dict or convert Julia Dict to Python Dict in Julia?

Hi,
I am writing a piece of code that need to load a Python package with PyCall.

But when I transfer a Julia Dict to the package, I got an error. I think it is because the package can not identify the Julia Dict, so I would try to transfer a Python Dict to the package.

So my question is, how could I use Python Dict or convert Julia Dict to Python Dict in Julia?

Any suggestions are welcome, thank you!

If you haven’t done so already, start with searching for “dict” in the README at https://github.com/JuliaPy/PyCall.jl and see if the information you find there is enough to help you solve the problem.

1 Like

Thank you for your suggestion! I read the README and found the dict in julia and python would convert automatically, and I check my code again, it seems that the error is not caused by the dict…my mistake.

1 Like