Skip to content

Commit

Permalink
Make numba optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpap committed Nov 22, 2020
1 parent 6d38a7c commit 217b959
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/app/image_blur.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import numpy as np
import scipy.misc
from numba import njit

try:
from numba import njit
except ImportError:
import warnings
warnings.warn("numba is not installed. This example will be painfully slow.")
njit = lambda f: f

from bokeh.io import curdoc
from bokeh.layouts import column
Expand Down

0 comments on commit 217b959

Please sign in to comment.