Hi,
I don’t have to call Julia methods, but I used Julia directly and its doesn’t work.
For example, I just used ‘using GLMakie’ in a python3, but it has the same error in the picture above.
How do I use julia directly? Thanks!
Well using GLMakie is Julia syntax, which of course is not understood by the Python parser. If you want to use Julia syntax you have to use Julia rather than Python, i.e. run a Julia kernel in your Jupyter notebook (via IJulia)
First, you have to download Julia for your system:
Next you have to add the IJulia package (the Julia backend for Jupyter).
Open Julia (by clicking on the application icon or open a terminal and type julia. This is the Julia REPL. Type ] and then add IJulia. This will link Julia to Jupyter.
Now you should be able to select Julia from the list of kernels.
which also has a section on using Jupyter in Visual Studio Code, which is quite nice. (Using only Jupyter is at the bottom of the tutorial at section 1.10)
Note
You have to use Julia syntax. In your example you are using Python, Numpy, and matplotlib syntax (like np.sin() and plt.figure()). Check out the Makie basic tutorials and examples for how to make plots: Makie homepage