Matlab equivalent to iPython Notebook

210 ビュー (過去 30 日間)
furanco Pestilli
furanco Pestilli 2012 年 11 月 11 日
回答済み: Mike Croucher 2023 年 3 月 1 日
Is there anything similar to the iPhython Notebook for MatLab?
Thank you, Franco
  4 件のコメント
Maj-Lena Linderson
Maj-Lena Linderson 2022 年 1 月 21 日
Thank you!
Maj-Lena
Rene
Rene 2022 年 7 月 20 日
Thank you.

サインインしてコメントする。

採用された回答

David Garrison
David Garrison 2019 年 9 月 16 日
MATLAB has the Live Editor which allows you to create live scripts that combine code, output, and formatted text in an executable notebook. Code can be divided into manageable sections that can be run independently. Output and visualizations appear next to the code that produced them. Code and results can be enhanced with formatted text, headings, images, and hyperlinks. Equations can be added using the interactive editor or created using LaTeX. Live scripts can be exported to HTML, PDF, LaTeX, or Word.
Live scripts can contain interactive controls to allow others to experiment with parameters in your code. You can choose to hide the code to create simple applications and dashboards that can be shared with others.
The Live Editor provides contextual hints for function arguments, file names, and more. Figures and tables in the output are interactive. Those interactions generate MATLAB code automatically. That code can then be added back to your live script. Refactoring tools allow you to select blocks of code to create reusable functions. The Live Editor provides a fully integrated debugger to troubleshoot code.
In R2019b, we've added Live Editor Tasks which are apps that can be embedded in a script that allow you to interactively explore parameters and options, immediately see the results, and automatically generate the corresponding MATLAB code for the completed task and for the display of results.
  3 件のコメント
Maj-Lena Linderson
Maj-Lena Linderson 2022 年 1 月 21 日
I have an exercise in Matlab that I need to make able for the students to do from home due to the Covid restrictions. I was thinking of using Live Editor as I have understood it as they will not have to install Matlab on their computer to run it. Is this correct? Is there in that case somewhere an instruction how to save or compile? Do the students need to install any other program and can it be run in Windows, Mac and Android or is there any limitations?
Maj-Lena Linderson
Maj-Lena Linderson 2022 年 1 月 21 日
I understand that they can read through the pdf but if I want them to change in the scripts and adapt. Is that doable without Matlab installed?

サインインしてコメントする。

その他の回答 (6 件)

Anne Urai
Anne Urai 2015 年 11 月 12 日
Personally, I do not think Matlab's Publish function has the same advantages as the IPython notebook. However, it is quite easy to run Matlab code within an IPython notebook. See my instruction guide here http://anneurai.net/2015/11/12/matlab-based-ipython-notebooks/
  1 件のコメント
Liner
Liner 2015 年 12 月 30 日
Wow, if this becomes robust and widely supported, for those of us in academic environments with MATLAB licenses, this could be game changer. I have reluctantly been holding off on the MATLAB to python transition because of the DSP toolboxes and all my old code, this will be really nice to share my code with my colleagues/students. Thanks!

サインインしてコメントする。


Sarah Palfreyman
Sarah Palfreyman 2016 年 4 月 20 日
Have you tried the MATLAB Live Editor?

Angel marchev
Angel marchev 2019 年 12 月 30 日
Still, as of today Matlab is lagging behind compared to R and Python for scientific computing and IMHO it si because of poor (to none) integration in Jupyter.... everyone in the world is using notebooks, and mathworks should not be going against its own (shrinking in number) users
  1 件のコメント
Ted Wong
Ted Wong 2021 年 2 月 26 日
Matlab is afraid it will allow everybody sharing the same Matlab license without paying. It's a commerical decision.

サインインしてコメントする。


Royi Avital
Royi Avital 2019 年 12 月 20 日
編集済み: Royi Avital 2020 年 1 月 13 日
As written above, there is the option of MATLAB's Live Editor.
I find it to be really limited vs. iPython Notebook. They are not even close in their LaTeX capabilities and the quality of the experience in my opinion.
The nice thing about the iPython Notebook (More accurately, Jupyter Framework) framework is it is open.
So there are Open Source solutions which implements MATLAB Kernel which gives you the ability to use MATLAB just as you would use Python / R / Julia. Have a look at:
Each of them works perfectly.
Enjoy.

David Garrison
David Garrison 2019 年 12 月 20 日
Royi and Anne,
Thank you for your comments. For those people out there who use Jupyter and MATLAB, the MATLAB kernel for Jupyter may be their preferred approach. One thing Jupyter has demonstrated is the power of the notebook paradigm. We built the Live Editor for MATLAB users to create notebooks for sharing, demonstraton, and teaching. We can give our users some things that Jupyter with the MATLAB kernel cannot provide including embedded UI controls, live editor tasks, and code generation from plot interactions. What's more, we can give Live Editor users a much tighter integration with the larger MATLAB ecosystem with tools like code completion, file comparison, command line execution and more.
Thanks.
  2 件のコメント
Royi Avital
Royi Avital 2020 年 1 月 11 日
編集済み: Royi Avital 2020 年 1 月 13 日
Hi David,
While all the things you wrote are true I still find the experience of Jupyter to be much better than MATLAB's Live Editor.
It lacks so much in the LaTeX integration, being able to dispaly on GitHub, etc... that I really don't see the point not join the herd and work with Jupyter.
Ted Wong
Ted Wong 2021 年 2 月 26 日
The Live Editor is not even close to Jupyter.

サインインしてコメントする。


Mike Croucher
Mike Croucher 2023 年 3 月 1 日
An update on this question: MathWorks have now released an official MATLAB kernel for Jupyter. Details at Official MathWorks MATLAB kernel for Jupyter released » The MATLAB Blog - MATLAB & Simulink

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by