Plotting KeplerLightCurveFile makes my ipython session unresponsive
See original GitHub issueProblem description
After I successfully plot a KeplerLightCurveFile (from_archive), my entire ipython
session becomes unresponsive. I am forced to close the terminal that the ipython
session is contained within
Example
import lightkurve as lk
import numpy as np
import pandas as pd
from pylab import *;ion()
k201485699 = lk.KeplerLightCurveFile.from_archive('201485699')
k201485699.PDCSAP_FLUX.plot()
Then my ipython
session crashes (stops responding) with no warnings or errors
Expected behavior
I would have expected the matplotlib
window to open, and then I would be able to use my ipython
session to continue to plot and/or make other code.
Environment:
- platform: OSX 10.13.6
- lightkurve version: 1.0b16
- installation method:
pip install lightkurve
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Pickle not working in interactive ipython session #3899 - GitHub
When I used the %matplotlib magic in ipython (notebook) to enable interactive matplotlib plotting, pickling of figures does not work anymore.
Read more >Remote ipython kernel not displaying plots - Stack Overflow
1 Answer 1 · When connecting to the server, use -L (which does local port forwarding) instead of -X (which does graphical output...
Read more >IPython reference — IPython 3.2.1 documentation
This will load IPython configuration, startup files, and everything, just as if it were a normal IPython session. It is also possible to...
Read more >Interactive figures — Matplotlib 3.6.2 documentation
We recommend using IPython for an interactive shell. ... If you wish to disable automatic redrawing of the plot: In [6]: plt.ioff().
Read more >Built-in magic commands — IPython 8.7.0 documentation
Make magic functions callable without having to type the initial %. ... Your bookmarks persist through IPython sessions, but they are associated with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We release a new version every few days now!
@exowanderer I notice that you are turning interactive mode on using
ion()
. What happens if you remove that statement, or if you callioff()
and callshow()
manually after issuing the plot command?