I have written a code in Python and want to import it into Mathematica, which I was able to do using “>”. But since training a neural network is easier in the Wolfram Language, I want to train the Python Code using Mathematica. Is there any way to do so? Or should I rewrite the code in Wolfram Language?
aryandeshpande
(Aryan Deshpande)
1
soberania
(Estevao Teixeira)
2
Hi,
you can call Python via command line, as I answered in this post Calling Fortran from Mathematica but for Fortran.
This can be one way to do it.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| calling Mathematica from within python | 1 | 8693 | October 24, 2013 | |
| What's the best way to call Mathematica from Python? | 13 | 63788 | March 20, 2021 | |
| How to pass data to Python in Mathematica? | 5 | 12906 | September 1, 2021 | |
| Calling Mathematica from Python via DOS | 0 | 3997 | December 29, 2016 | |
| Run python code from a mathematica notebook? (Mac OS) | 5 | 9533 | January 17, 2019 |