pyjulia icon indicating copy to clipboard operation
pyjulia copied to clipboard

Redirect julia warning to python warning

Open amrit-poudel opened this issue 4 years ago • 1 comments

Is it possible to redirect warnings from Julia code to warnings in Python? Currently, warnings from Julia are redirected as stdout in python. I was wondering if we could redirect those julia warning to python warning so that they could be dealt with accordingly. Thanks!

amrit-poudel avatar Nov 05 '21 19:11 amrit-poudel

I think this should be straightforward. Somebody needs to write AbstractLogger https://docs.julialang.org/en/v1/stdlib/Logging/#AbstractLogger-interface interface using PyCall to translate Julia's logging events to Python's.

tkf avatar Nov 05 '21 23:11 tkf