-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Unexpected console message from IVY and spark #1423
Comments
I think the issue is that now, when something is printed to stderr, jupyter shows it in a red box. What you can do is:
Note, that this sets stderr to |
Thank you for suggestion @mathbunnyru, but the proposed solution doesn't seem to work. No change in the output. Any chance to specify redirection only for specific source? |
Could you please make your question reproducible by other people? |
Got it, you are right.
The console outputs related to Ivy operations appear with both the java version |
Any update on this issue? I tested the code with the most recent version and the behaviour persists |
@mbalduini I've tried several solutions, but I didn't find something working, I think you need to somehow configure |
Another option would be to somehow configure jupyterlab / jupyterlab cell to not to show stderr (or sth like this). |
Hi @mathbunnyru thank you for your effort. Do you have any further information or suggestions to cope with this problem? |
Hello @mbalduini and @mathbunnyru, I have looked into this problem in more depth. The modification of the notebook output comes from one of the changes made in the release
A subsequent fix provides a way to restore the previous behavior. The fix consists in disabling the capture new behavior by turning it off through the You can configure it by turning it off in your ipython profile. # create a default profile
ipython profile create Edit the file c.IPKernelApp.capture_fd_output = False That's it ! All the outputs from Java, Spark and Ivy will no more be displayed in the notebook but only in the logs. |
@romainx nice! I think we can try to add this file to pyspark image (it will also be included in all-spark). |
@mathbunnyru 👍 |
Description
Running a simple cell to create a spark session (see code below) annoying message from Ivy (related to packages config) and spark start to be printed on console.
I tried to change che log4j configuration for spark and the
logging
lib to set the global logging level with no results.Any help in removing completely the messages in the picture?
The text was updated successfully, but these errors were encountered: