def preview_history(self, window, history_entry):
        self.current_history_entry = history_entry

        # track the view even if we won't be previewing it (to support quick-open and remove from history quick keys)
        self.__track_calling_view(window)

        # Only preview the view if the user wants to see it
        if not self.SHOW_FILE_PREVIEW:
            return

        filepath = history_entry['filename']
        if os.path.exists(filepath):
            # asynchronously open the preview (improves perceived performance)
            invoke_async(lambda: self.__open_preview(window, filepath), 0)
        else:
            # Close the last preview and remove the non-existent file from the history
            self.__close_preview(window)
            self.__remove(self.get_current_project_key(), filepath)
            self.__save_history()
:param client: Marathon client
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.preview_history--crossover with--dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py/_calculate_version