The left is a sample, the right is what I print. May I ask how to fix it?
Asked
Active
Viewed 27 times
0

Trenton McKinney
- 56,955
- 33
- 144
- 158

Linda Lu
- 19
- 2
-
You can add a semicolon after the last statement to avoid Jupyter writing out its return value. So: `sns.boxplot(...);`. You can use `sns.set(font_scale=0.8)` at the start to change all the text sizes. – JohanC Nov 19 '21 at 07:26
-
You are using newer versions of both seaborn and matplotlib than what you're referring to, and also seem to have your rcparams set differently than the default. – mwaskom Nov 19 '21 at 11:40
-
@JohanC This is useful! – Linda Lu Nov 20 '21 at 17:11
-
Does this answer your question? [How do you suppress output in Jupyter running IPython?](https://stackoverflow.com/questions/23692950/how-do-you-suppress-output-in-jupyter-running-ipython) – Trenton McKinney Nov 20 '21 at 19:15
1 Answers
0
I solve the problem by this comment:
You can add a semicolon after the last statement to avoid Jupyter writing out its return value. So: sns.boxplot(...);. You can use sns.set(font_scale=0.8) at the start to change all the text sizes. – --JohanC

Linda Lu
- 19
- 2