Which python libraries are included? #63
-
The Mojo docs say the following:
However, I haven't found a way to list the other available packages. Some experimentation in the Playground shows that numba, scipy and sklearn are also included, but alas no PyTorch or Tensorflow: %%python
import pandas
print("pandas", pandas.__version__)
import numpy
print("numpy", numpy.__version__)
import matplotlib
print("matplotlib", matplotlib.__version__)
import sklearn
print("sklearn", sklearn.__version__)
import scipy
print("scipy", scipy.__version__)
import numba
print("numba", numba.__version__)
pandas 1.5.0
numpy 1.23.3
matplotlib 3.6.0
sklearn 1.1.2
scipy 1.9.1
numba 0.56.2 Is there a way to list the available libraries? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
I thought I had read something about support for something to do with PyTorch or Tensorflow being built in, but I wasn't sure exactly what... so I looked it up. Here's what I found at https://docs.modular.com/mojo/faq.html --- How does Mojo help with PyTorch and TensorFlow acceleration? DAK |
Beta Was this translation helpful? Give feedback.
-
As the document said, "you can import any other Python module.", so no limitation to use any Python modules, I guess. |
Beta Was this translation helpful? Give feedback.
-
https://docs.modular.com/mojo/get-started.html#caveats indeed all python modules will be supported once the language is out. but for now in the notebook there is |
Beta Was this translation helpful? Give feedback.
-
Adding to this I think you can run this: |
Beta Was this translation helpful? Give feedback.
-
%%python
import os
os.system("pip list") |
Beta Was this translation helpful? Give feedback.
-
Please also suggest packages you would like to see added -> #173 |
Beta Was this translation helpful? Give feedback.
Adding to this I think you can run this: