How can I run a jupyter notebook script from matlab?
41 ビュー (過去 30 日間)
古いコメントを表示
I already tried running matlab from jupyter using Oct2Py but it didn't work (error after error).
So, I'm wondering if I can use matlab to run a jupyter notebook script (this would be much simpler because most of my code is in matlab- only a small part of it (the machine learning part) is in jupyter notebook.
Thanks.
3 件のコメント
Sourabh Kondapaka
2020 年 11 月 16 日
Do you mean to run all cells of the jupyter notebook from matlab ?
回答 (1 件)
Sourabh Kondapaka
2020 年 11 月 19 日
You can convert the kmeans.ipynb file to a python script by either of the followign ways:
- Open kmeans.ipynb -> Click on File -> Download as -> Python (.py) . The python script can be found in your downloads folder. Now copy the python script file to the same directory as your matlab script and then follow Lukas Hagmeyer's suggestion : [status,cmdout] = system('python kmeans.py');
- The other way to convert .ipynb to .py file is to use nbconvert python package. Fore more info you can check their documentation
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Integration with Online Platforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!