Oscar Dowson

Results 1409 comments of Oscar Dowson

Related issue: https://github.com/jump-dev/JuMP.jl/issues/2056

Was this a request for this functionality? Or better syntax? Because this works as advertised.

So something like this? ```Julia julia> module TypedIndices struct TypedIndex{Name,T} data::T end function Base.show(io::IO, x::TypedIndex{Name,T}) where {Name,T} print(io, "$(Name)($(repr(x.data)))") end function TypedIndex(name::Symbol, iter::AbstractVector) return map(i -> TypedIndex{name,eltype(iter)}(i), iter) end function...

Ah. The issue is really the `lookup` in `DenseAxisArray`, which is slow even if the axis is integer: https://github.com/jump-dev/JuMP.jl/blob/3ccbf3992de89ca79e83d933b06c684340dfeb4e/src/Containers/DenseAxisArray.jl#L18-L29 It's probably worth checking if the axis is equivalent to a...

I'm trying to compile this for Julia (https://github.com/JuliaPackaging/Yggdrasil/pull/5048) so we can interface CasADi into JuMP (likely just via the AMPL .nl interface for now, but if it benchmarks okay I'll...

What's the policy on leaving upstream issues open? There doesn't seem to be anything here for documenter to fix.

Just confirming this is still an issue. It's also a problem for the LaTeXWriter, which doesn't shrink the tables to fit the page width. Here's an example from the JuMP...

It's probably sufficient to just print the output of the `LaTeXWriter.stderr` file. https://github.com/JuliaDocs/Documenter.jl/blob/743f0fdb3783db968d054b9699ecfff22ba7df4f/src/Writers/LaTeXWriter.jl#L195-L197 `println(stdout, read("LaTeXWriter.stderr", String))` There's also the `DOCUMENTER_VERBOSE` flag to print everything into the CI log, but that...

Here's my `make.jl` for MathOptInterface: https://github.com/jump-dev/MathOptInterface.jl/blob/160034156de88f27f0bad0ea5c16db4bef32c8a0/docs/make.jl#L80-L125 It was actually pretty trivial. You just run `HTML` and `LaTeX` to separate `build` directories, then copy the PDF into the HTML directory and...

Some of the Python packages have managed this, and they have a little icon to indicate it's an external link. One example: http://xarray.pydata.org/en/stable/