%%python not working
Hello, i want to use some python inside my mojo files. When i run the cli mode on my wsl ubuntu, i can use the %%python functionality. However on the wsl vscode i get "expressions are not yet supported on the file scope level". However in the official github code example https://github.com/modularml/mojo/blob/main/examples/simple_interop.py it looks like there is already interop support. did I do some installation mistake or is this the case for everyone ? thank you.
GitHub
mojo/examples/simple_interop.py at main · modularml/mojo
The Mojo Programming Language. Contribute to modularml/mojo development by creating an account on GitHub.
1 Reply
%%python
is not a valid syntax for Mojo
This only works as a REPL directive or in a Jupyter NB Cell