^CTraceback (most recent call last):
File "/home/runner/boilerplate-medical-data-visualizer/sandbox.py", line 13, in <module>
plt.show()
File "/home/runner/boilerplate-medical-data-visualizer/venv/lib/python3.10/site-packages/matplotlib/pyplot.py", line 446, in show
return _get_backend_mod().show(*args, **kwargs)
File "/home/runner/boilerplate-medical-data-visualizer/venv/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 3620, in show
cls.mainloop()
File "/home/runner/boilerplate-medical-data-visualizer/venv/lib/python3.10/site-packages/matplotlib/backends/_backend_tk.py", line 523, in start_main_loop
first_manager.window.mainloop()
File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/tkinter/__init__.py", line 1458, in mainloop
self.tk.mainloop(n)
KeyboardInterrupt
I am working on this
For some reason, no plot will show up when trying to use seaborn. The entire thing just pauses forever, and you are forced to interrupt it in order to get back the Console prompt.
Code
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
#df = pd.read_csv("medical_examination.csv")
#sns.countplot(data=df, x="cardio")
#plt.show()
tips = sns.load_dataset("tips")
sns.scatterplot(x="total_bill", y="tip", data=tips)
plt.show()
All of thee packages were install in the virtual environment. There is no error loading them. But when this code runs, nothing happens. Basically plt will not plot, nor even open a plotting window.
The plot should show up in the “Output” window, but that never happens.