diff --git a/jdaviz/configs/default/plugins/export_plot/export_plot.py b/jdaviz/configs/default/plugins/export_plot/export_plot.py index 83df8e9eae..f3d1f438de 100644 --- a/jdaviz/configs/default/plugins/export_plot/export_plot.py +++ b/jdaviz/configs/default/plugins/export_plot/export_plot.py @@ -7,7 +7,7 @@ from jdaviz.core.custom_traitlets import FloatHandleEmpty, IntHandleEmpty from jdaviz.core.events import AddDataMessage, SnackbarMessage from jdaviz.core.registries import tray_registry -from jdaviz.core.template_mixin import PluginTemplateMixin, ViewerSelectMixin +from jdaviz.core.template_mixin import PluginTemplateMixin, ViewerSelectMixin, with_spinner from jdaviz.core.user_api import PluginUserApi try: @@ -146,6 +146,7 @@ def vue_save_figure(self, filetype): """ self.save_figure(filetype=filetype) + @with_spinner('movie_recording') def _save_movie(self, i_start, i_end, fps, filename, rm_temp_files): # NOTE: All the stuff here has to be in the same thread but # separate from main app thread to work. @@ -161,8 +162,6 @@ def _save_movie(self, i_start, i_end, fps, filename, rm_temp_files): i_step = 1 # Need n_frames check if we allow tweaking try: - self.movie_recording = True - while i <= i_end: if self.movie_interrupt: break @@ -190,7 +189,6 @@ def _save_movie(self, i_start, i_end, fps, filename, rm_temp_files): if video: video.release() slice_plg._on_slider_updated({'new': orig_slice}) - self.movie_recording = False if rm_temp_files or self.movie_interrupt: for cur_pngfile in temp_png_files: