Strange, when I load(physics.py), it's function Q is available even in the
same cell and without any import. But s=Q(10,'m');s**2 gives the output
----> 3 s**Integer(2)
raise UnitError('Exponents must be dimensionless')
UnitError: Only integer and inverse integer exponents allowed
The same error occurs in linked cells.
Ingo Dahn schrieb am Mittwoch, 16. Dezember 2020 um 14:24:38 UTC+1:
> Hi, Andrej,
> With your example I get the same error in another cell and when I do
> load(../physics.py) and in another linked cell import physics I get the old
> physics not found error.
> Can you point me to a page with linked cells where it works?
> [email protected] schrieb am Sonntag, 13. Dezember 2020 um 19:20:49 UTC+1:
>
>> IPython extension are supposed to be pip-installable, which physics
>> module is not and I would prefer not to custom patch into some place.
>>
>> Getting it just for a single cell and loading works:
>> https://sagecell.sagemath.org/?q=iuhqxt
>>
>> but I am unable to use it afterwards. What does work, however, is
>> downloading and loading this module in one cell, then using in another
>> linked cell. If this is a suitable option for you - great! If not - I can't
>> say that I am excited about digging deeper into why it does not work ;-)
>>
>
--
You received this message because you are subscribed to the Google Groups
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-cell/90e304d2-e6b9-4585-aafe-b8a714e2a939n%40googlegroups.com.