jupyter notebook vs live scripts

 Respuesta aceptada

David Garrison
David Garrison el 17 de Mzo. de 2017

5 votos

The Live Editor and the Jupyter Notebook are similar in that you can mix code with output, run code in sections, and add formatted text, images, and equations to tell a story.

The Live Editor provides a new way to develop code for exploratory programming, to create an interactive narrative, and to present or teach. In particular, the Live Editor allows you to

  • Choose between inline output and output on the right
  • Zoom, pan, and rotate plots and get the generated code
  • Format text interactively rather than through markdown
  • Create equations using LaTeX or through an interactive equation editor
  • Use functions hints, tab completion, and code analysis tools

The Live Editor is available in desktop MATLAB and in MATLAB Online. To find out more about the Live Editor, go the Live Editor web page. You can find example live scripts in the MATLAB documentation and on the MATLAB File Exchange.

4 comentarios

LeChat
LeChat el 1 de Dic. de 2022
All this is neat indeed, but I believe the implementation in Matlab is pretty poor: livescripts are pretty heavy for the RAM, its is not as smooth to use as compared to Jupyther Notebooks.
Here I wrote a tutorial to use Matlab in Jupyther Notebooks:
Hope this help, either by pushing Mathworks to optimize their livescripts, or you if you like both Jupyther Notebooks and Matlab language.
Firas
Firas el 5 de Sept. de 2024
@LeChat Could you please re-share the tutorial again? It seems like your blog is offline. Thanks in advance.
LeChat
LeChat el 5 de Sept. de 2024
LeChat
LeChat el 5 de Sept. de 2024
PS: I haven't tried this setup for a while so do not hesitate to send me any feedback.

Iniciar sesión para comentar.

Más respuestas (2)

Hechuan Wang
Hechuan Wang el 4 de Sept. de 2018

5 votos

More importantly, livescript utilize matlab debugger and workspace inspector, but jupyter does not have debugger or variable inspector out of box.
Kouichi C. Nakamura
Kouichi C. Nakamura el 3 de Jul. de 2019

3 votos

Both Jupyter Notebook and R Notebooks support markdown, but for back-compatibility reasons (I think) MATLAB's Live Editor uses MATLAB's own markup language for the text part. This is OK, but rather unfortunate, I think.

2 comentarios

xingxingcui
xingxingcui el 12 de Jul. de 2022
Editada: xingxingcui el 12 de Jul. de 2022
Walter Roberson
Walter Roberson el 5 de Sept. de 2024
If I understand correctly, Live Editor uses MathML for the markup. I am not sure exactly how LaTex is handled... I think it goes through a LaTex to MathML layer for the rendering, while keeping a copy of the original LaTex.
But it doesn't matter so much that it uses MathML, as it hides the MathML layer.

Iniciar sesión para comentar.

Categorías

Más información sobre Integration with Online Platforms en Centro de ayuda y File Exchange.

Preguntada:

el 15 de Mzo. de 2017

Comentada:

el 5 de Sept. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by