From f7a940227dd3ebade96b219623992a9ffa629aa9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 14 Jan 2021 15:49:30 -0500 Subject: [PATCH] Move sixel under opportunistic import Do not require sixel to run stats. --- confluent_client/bin/stats | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/confluent_client/bin/stats b/confluent_client/bin/stats index c9231a43..3bfa61ee 100755 --- a/confluent_client/bin/stats +++ b/confluent_client/bin/stats @@ -22,13 +22,17 @@ import io import numpy as np import os -import sixel import subprocess import sys -class DumbWriter(sixel.SixelWriter): - def restore_position(self, output): - return +try: + import sixel + + class DumbWriter(sixel.SixelWriter): + def restore_position(self, output): + return +except ImportError: + pass def plot(gui, output, plotdata, bins):