- 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
3 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/645303-how-can-i-run-a-jupyter-notebook-script-from-matlab#comment_1127858
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/645303-how-can-i-run-a-jupyter-notebook-script-from-matlab#comment_1127858
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/645303-how-can-i-run-a-jupyter-notebook-script-from-matlab#comment_1127873
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/645303-how-can-i-run-a-jupyter-notebook-script-from-matlab#comment_1127873
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/645303-how-can-i-run-a-jupyter-notebook-script-from-matlab#comment_1136198
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/645303-how-can-i-run-a-jupyter-notebook-script-from-matlab#comment_1136198
Sign in to comment.