qs.plots.snapshot on a Linux Debian GNU/Linux 12 (bookworm) does't work.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 69/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- data-visualization
Research direction
Read quantstats/_plotting/wrappers.py around snapshot, especially the show handling and _plt.close(). Check how show=True behaves on Debian GNU/Linux 12 and compare it with the proposed blocking display change. Done means snapshots display correctly on that platform while existing behavior remains covered by relevant plotting checks.
Written by the indexing model from the issue text.
Description
This change fix the problem:
diff --git a/quantstats/_plotting/wrappers.py b/quantstats/_plotting/wrappers.py
index 3c38fc5..16e660a 100644
--- a/quantstats/_plotting/wrappers.py
+++ b/quantstats/_plotting/wrappers.py
@@ -398,7 +398,7 @@ def snapshot(
# Show plot if requested
if show:
- _plt.show(block=False)
+ _plt.show(block=True)
_plt.close()
- Dominant language
- Python
- Stars
- 7.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ranaroussi/quantstats
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ranaroussi/quantstats#591 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ranaroussi/quantstats#590 ·
-
Matplotlib tick-label warning with pandas 3.1.0Possibly taken @jackiectl2 claimed this 40 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ranaroussi/quantstats#582 ·
-
Drawdown functions fail on supported RangeIndex inputsPossibly taken @Cyber-Marty claimed this 51 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ranaroussi/quantstats#575 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
ranaroussi/quantstats#586 · 1 comment ·
All issues in ranaroussi/quantstats
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choicePossibly taken @beartester34 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
modelscope/evalscope#2330 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Distribution plot crashes when a numeric feature is constant in the train or test setPossibly taken @adembilge claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
MAIF/shapash#847 · 1 comment ·
Maintainers usually reply within 10 days