Rick Teachey

Results 26 comments of Rick Teachey

FWIW: I have made no progress on this idea, and would be very happy to see someone else take a crack at it. I'd be willing to try it out...

> Experimenting with this idea, I found a possible solution using the existing API. > > ## Summary > Create type-hint for a fixed-length homogeneous tuple directly with `types.GenericAlias`. >...

Wow thanks for the quick and helpful response!

> mkproject should probably forward flags it doesn't handle to mkvirtualenv (which it calls). I think this is a bug. I'm glad I found it; after I closed this yesterday,...

You can fix this by extending `pint` to support the `sympify` API. See [here](https://docs.sympy.org/latest/modules/core.html#module-sympy.core.sympify). This seems to work ok: ``` from pint.quantity import _Quantity from sympy import sympify _Quantity._sympy_ =...

I would personally love that. One problem might be that the implementation has to make a choice regarding whether the `pint` units will be represented in `sympy` using long from,...

Aha, I'm not familiar with `default_format`- must have missed that part of the tutorial. Looks like it would definitely come close to solving the problem.

Using the `default_format` setting seems to work pretty flawlessly, whether using pretty print or not: ``` >>> from pint.quantity import _Quantity >>> from sympy import sympify >>> _Quantity._sympy_ = lambda...

Thank you for replying. I think the problem is it hits these lines, and I get the "latex program is not installed" error: https://github.com/sympy/sympy/blob/a6ee2937450480469cb7dc16eb2e6eae1220d067/sympy/printing/preview.py#L307-L308 But `matplotlib` is able to render...

You are right, it's not. Thanks to you pointing me in the right direction I am now just trying to use the `IPython` rendering function directly: ``` from PIL import...