question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plotting KeplerLightCurveFile makes my ipython session unresponsive

See original GitHub issue

Problem 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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
barentsencommented, Oct 15, 2018

We release a new version every few days now!

1reaction
barentsencommented, Oct 15, 2018

@exowanderer I notice that you are turning interactive mode on using ion(). What happens if you remove that statement, or if you call ioff() and call show() manually after issuing the plot command?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found