unitful within pluto problems because of modules #1374
-
I'm trying to use Unitful within pluto to define a unit with the @Unit macro, but hat requires the unit to be defined within a module for it to later be imported. I can't find a way to achieve this, as modules defined in one cell aren't visible in another, and cells that define modules can't have any additional code. My units module cell looks like this:
I have tried work-arounds like this:
However, this gets upset about tick being defined in multiple workspaces as soon as anything is re-evaluated. I'm guessing this is due to some deeper voodoo in how pluto works interacting bacly with modules? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't see this as true, I tried creating a new unit in a module and then reference it in another cell and I don't get any problem with that: I am on the main branch of Pluto, so don't know if this is somehow working now due the macro analysis feature that is not in the latest registered Pluto version yet, but I think being able to reference created module is there also in base Pluto. |
Beta Was this translation helpful? Give feedback.
I don't see this as true, I tried creating a new unit in a module and then reference it in another cell and I don't get any problem with that:
I am on the main branch of Pluto, so don't know if this is somehow working now due the macro analysis feature that is not in the latest registered Pluto version yet, but I think being able to reference created module is there also in base Pluto.