-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppressor not working with Julia 1.7.1 and SimpleGraphAlgorithms #40
Comments
Base.get(::Base.PipeEndpoint, key::Symbol, default) = key === :color ? Base.get_have_color() : default
I misunderstand part of your issue, I think the other part that has been changed is the return value of Suppressor.jl/src/Suppressor.jl Line 18 in 3cb95ef
I think one could just use the following on 1.7 without using Suppress now redirect_stdout(Pipe()) do
vertex_color(G)
end (it's a bit of surprise that |
Thanks Roger! That work around helps, but it doesn't solve the problem for more complicated use cases. For example, if I put
I don't understand why |
I think to ignore the stdout from C, one needs to redirect it to using SimpleGraphs, SimpleGraphAlgorithms
G = SimpleGraph([0 1; 1 0])
function quiet_color(G)
redirect_stdout(devnull) do
vertex_color(G)
end
end
quiet_color(G) |
I recently upgraded to Julia 1.7.1 and I noticed that Suppressor.jl is not working anymore with some code where it was previously working just fine. Here is a minimal working example:
I was expecting the output to just be
but instead, I get a very verbose output from the solver that computes the vertex coloring. This same code worked fine in Julia 1.6.3, so I'm not sure what has changed.
When running from the command line, the second and subsequent times that I run the last line, I get the expected output. However, when I'm in a Jupyter notebook, I keep getting the verbose text every time.
The text was updated successfully, but these errors were encountered: