Issue with using objgraph in jupyter console
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the difference between an IPython session and jupyter qtconsole using objgraph.show_backrefs(objgraph.by_type('int')), including an output filename. Compare whether graph output is generated or displayed in each environment; done means the qtconsole behavior is explained and a focused fix or documented limitation is verified.
Written by the indexing model from the issue text.
Description
If I use objgraph in an IPython session things work as expected:
In [1]: import objgraph
In [2]: a = 1
In [3]: objgraph.show_backrefs(objgraph.by_type('int'))
Graph written to /var/folders/zy/t1l3sx310d3d6p0kyxqzlrnr0000gr/T/objgraph-5iuhcjwd.dot (0 nodes)
Graph viewer (xdot) not found, generating a png instead
Image generated as /var/folders/zy/t1l3sx310d3d6p0kyxqzlrnr0000gr/T/objgraph-5iuhcjwd.png
However if I use jupyter qtconsole there is no output from show_backrefs, and if I try and specify an output filename, nothing happens:
In [1]: import objgraph
In [2]: a = 1
In [3]: objgraph.show_backrefs(objgraph.by_type('int'))
what could be going on?
- Dominant language
- Python
- Stars
- 840
- Forks
- 71
- 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 mgedmin/objgraph
-
enhancement help-needed
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
enhancement help-needed
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
enhancement help-needed
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
question
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
enhancement help-needed
Difficulty 3/5 1-2 days Newbie friendliness 38/100
All issues in mgedmin/objgraph
Similar issues
-
[BUG] Container scenario crashes without expected_recovery_time, kube DNS example uses retry_waitOpenneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
krkn-chaos/krkn#1627 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NousResearch/hermes-agent#136483 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
[BUG] LazyStackedTensorDictStore zeroes the last byte of a new key set on the last elementPossibly taken @peterdsharpe claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pytorch/tensordict#2307 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day