How to change the order of sections in a .mlx file?

26 visualizaciones (últimos 30 días)
William Davies
William Davies el 18 de Feb. de 2021
Comentada: Duncan Carlsmith el 23 de Abr. de 2024 a las 12:37
Is it possible to change the order of sections in a .mlx file? For example, in Jupyter notebook I can drag cells up and down to change the order of cells.
Thank you!

Respuesta aceptada

Adam Danz
Adam Danz el 18 de Feb. de 2021
Editada: Adam Danz el 19 de Feb. de 2021
The ol' fashion copy-paste is the only way I know of.
I wouldn't be eager to support the ability to drag and drop blocks of code. Sometimes blocks of code can be run independently from any other block which would be safe to move within the file. But it's common for there to be variables defined or manipulated between several blocks which could cause giant headaches if drag-and-dropped without additional changes.
  2 comentarios
William Davies
William Davies el 22 de Feb. de 2021
Editada: William Davies el 22 de Feb. de 2021
Thanks Adam!
Yes that's true that blocks can rely on variables defined/manipulated in ealier blocks. From my experience on JupyterLab, the pros outweight the cons. But then again, I don't have much experience with .mlx files and Jupyter notebooks are heavily used for prototyping so being able to flexibly drag blocks around is may be particularly useful there.
Duncan Carlsmith
Duncan Carlsmith el 23 de Abr. de 2024 a las 12:37
I strongly support the ability to drag and drop sections of code plus text in the Live Script Editor. I often cannot drag over a whole section for reasons unknown in order top copy paste. Sometimes it seems limited because a figure is embedded. Other times, I dunno why. So copy-paste has to be done bit by bit and the process is daunting and error prone .

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Integration with Online Platforms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by