jtrakk

Results 112 comments of jtrakk

I like the `@functools.singledispatch` trick that Hynek [discusses](https://hynek.me/articles/serialization/). The key is passing ```python json.dumps(obj, default=to_serializable) ``` Here's an implementation: ```python import functools import json import io import sys from typing...

Yes I think an option would be good.

@jacobg > you're calling dt.diff on the sum, which then diffs it from the current time. That's intended. The idea is that I have a Period, and I want to...

I agree with the suggestion of `bumpversion.toml`. Toml is much easier to understand than ini and less likely to have quoting and spacing issues. `tomlkit` is good but its formatting...

I woulda thought `[sin, cos].(1)` would be like `[sin(1), cos(1)]`, broadcasting the array of functions over the argument.

It's not obvious to me what `(2, 3) .|> (sin, cos)` is supposed to do.

> it should be sufficient to change JULIA_DEPOT_PATH to point somewhere else. Indeed it is nice that we can set a custom path for julia files. Going a bit further...

I missed an important post from @StefanKarpinski in the other thread https://github.com/JuliaLang/julia/issues/10016#issuecomment-370254878: > The "dotfile bloat" part of this has been addressed, so I'm closing. If someone wants to implement...

Maybe [WGLMakie](http://juliaplots.org/WGLMakie.jl/stable/)

Thanks, that works. ``` p = plot(DataFrame(a=[1,2,3], b=[missing,20,30]), Geom.point(), x=:a, y=:b) ``` just gives `Plot(...)`. ``` p = plot(DataFrame(a=[1,2,3], b=[missing,20,30]), Geom.point(), x=:a, y=:b) draw(PNG(),p) ``` shows ``` MethodError: no method...