Macro Symbolics.@register
no longer working inside Pluto notebooks
#2091
Labels
macro
Julia macros: @oops
Symbolics.@register
no longer working inside Pluto notebooks
#2091
I use
Symbolics.@register
to prevent Symbolics from expanding certain functions. It used to work fine inside a Pluto notebooks about a month ago.Since one of the recent updates (still trying to determine which one), it only works the first time a notebook is run. If Pluto is restarted and the same notebook is loaded a second time, the macro seems to have no effect. Sometimes "rerunning" the cell using the macro, and then also rerunning all cells that depend on it in the right order "fixes" the issue. Is there a better way to do this? I was thinking about just "expanding the macro manually and pasting the resulting code in a cell" but that code looks a bit weird and I'd rather not have it in my notebook for 10 functions...
I know there are generally issues with macros inside Pluto notebooks, however, was there some change recently? The current behavior also seems to break Pluto's "execution order does not matter" rule.
To reproduce
h(a)
is displayed as Latex rendered "h(a)", rather than "a^2", which is what would happen withoutSymbolics.@register
.h(a)
is rendered as "a^2". This means thatSymbolics.@register
no longer has any effect.h(a)
cell.h(a)
is rendered as "a^2" again.System information
The text was updated successfully, but these errors were encountered: