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.

TessTargetPixelFile .interact() throws an exception

See original GitHub issue

Using the example alert data on MAST, TessTargetPixelFile works to read the TPF in, but .interact() crashes with the following error message:

from lightkurve.targetpixelfile import TessTargetPixelFile
tpf = TessTargetPixelFile('tess-data-alerts/hlsp_tess-data-alerts_tess_phot_00260304296-s02_tess_v1_tp.fits')

tpf.interact()

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-102-7bfcb21a8385> in <module>()
----> 1 tpf.interact()

~/anaconda3/lib/python3.6/site-packages/lightkurve/targetpixelfile.py in interact(self, lc, notebook_url, max_cadences)
    583         from .interact import show_interact_widget
    584         return show_interact_widget(self, lc=lc, notebook_url=notebook_url,
--> 585                                     max_cadences=max_cadences)
    586 
    587 

~/anaconda3/lib/python3.6/site-packages/lightkurve/interact.py in show_interact_widget(tpf, lc, notebook_url, max_cadences)
    408 
    409     output_notebook(verbose=False, hide_banner=True)
--> 410     return show(create_interact_ui, notebook_url=notebook_url)

~/anaconda3/lib/python3.6/site-packages/bokeh/util/api.py in wrapper(*args, **kw)

~/anaconda3/lib/python3.6/site-packages/bokeh/io/showing.py in show(obj, browser, new, notebook_handle, notebook_url)
    124 
    125     if not (isinstance(obj, LayoutDOM) or is_application or callable(obj)):
--> 126         raise ValueError(_BAD_SHOW_MSG)
    127 
    128     # TODO (bev) check callable signature more thoroughly

~/anaconda3/lib/python3.6/site-packages/bokeh/document/document.py in add_root(self, model, setter)
    241 
    242         '''
--> 243         from ..server.callbacks import NextTickCallback
    244         cb = NextTickCallback(self, None)
    245         return self._add_session_callback(cb, callback, one_shot=True, originator=self.add_next_tick_callback)

~/anaconda3/lib/python3.6/site-packages/bokeh/document/document.py in _pop_all_models_freeze(self)
    921         callback_obj._callback = self._wrap_with_self_as_curdoc(actual_callback)
    922         self._session_callbacks.add(callback_obj)
--> 923         self._callback_objs_by_callable[originator][callback].add(callback_obj)
    924 
    925         # emit event so the session is notified of the new callback

~/anaconda3/lib/python3.6/site-packages/bokeh/document/document.py in _recompute_all_models(self)
    929 
    930     def _destructively_move(self, dest_doc):
--> 931         ''' Move all data in this doc to the dest_doc, leaving this doc empty.
    932 
    933         Args:

AttributeError: 'function' object has no attribute 'references'

Environment:

  • MacOS, Python 3.6.6
  • lightkurve version 1.0b21
  • installation method: pip
  • bokeh-1.0.1 updated via conda

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jradavenportcommented, Nov 14, 2018

OK, I can get the same thing now. Maybe Jupyter was seeing something stale previously… grumble. Thanks for following up!! screen shot 2018-11-14 at 8 57 32 am

1reaction
barentsencommented, Nov 14, 2018

@gully Let’s investigate this a bit more. I am unable to reproduce this issue with bokeh 1.0.1; Linux Python 3.6.6; master branch (which has no changes to interact compared to 1.0b21). Can you reproduce on your end?

screenshot from 2018-11-14 08-12-10

Read more comments on GitHub >

github_iconTop Results From Across the Web

TessTargetPixelFile .interact() throws an exception #333
Using the example alert data on MAST, TessTargetPixelFile works to read the TPF in, but .interact() crashes with the following error ...
Read more >
lightkurve.TessTargetPixelFile
Displays an interactive HTML matplotlib animation. create_threshold_mask ([threshold, ...]) Returns an aperture mask creating using the thresholding method.
Read more >
Target Pixel Files - TESS Science Support Center - HEASARC
This file object provides a convenient way to interact with the data file that has been returned by the archive, which contains both...
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