
from phi.flow import *


def test_tensorflow():
    try:
        import torch
    except ImportError:
        return "Not installed"
    from phi import tf
    with tf.TF_BACKEND:
        math.assert_close(math.ones(batch=8, x=64) + math.ones(batch=8, x=64), 2)
    # TODO cuDNN math.conv(math.ones(batch=8, x=64), math.ones(x=4))
    return "OK"


def test_torch():
    try:
        import torch
    except ImportError:
        return "Not installed"
    from phi import torch
    with torch.TORCH_BACKEND:
        math.assert_close(math.ones(batch=8, x=64) + math.ones(batch=8, x=64), 2)
    return "OK"


def test_dash():
    try:
        import dash
    except ImportError:
        return "Not installed"
    return 'OK'



math.assert_close(math.ones(batch=8, x=64) + math.ones(batch=8, x=64), 2)

result_tf = test_tensorflow()
result_torch = test_torch()
result_dash = test_dash()


print(f"Installation verified.\nWeb interface: {result_dash}\nTensorFlow: {result_tf}\nPyTorch: {result_torch}")

@@ -1,8 +1,502 @@
+import sys%0Aif sys.version_info.major %3C 3 %5C%0A        or sys.version_info.major == 3 and sys.version_info.minor %3C 7:%0A    print(%22phiflow requires Python 3.7 or newer to run%22, file=sys.stderr)%0A    exit(1)%0A%0Atry:%0A    import numpy%0Aexcept ImportError:%0A    print('phiflow is unable to run because NumPy is not installed.', file=sys.stderr)%0A    exit(1)%0Atry:%0A    import scipy%0Aexcept ImportError:%0A    print('phiflow is unable to run because SciPy is not installed.', file=sys.stderr)%0A    exit(1)%0A%0Aimport phi
 %0Afrom ph
@@ -1178,37 +1178,434 @@
     return %22
-Not installed
+Dash not installed%22%0A    try:%0A        import plotly%0A    except ImportError:%0A        return %22Plotly not installed%22%0A    try:%0A        import imageio%0A    except ImportError:%0A        return %22ImageIO not installed%22%0A    try:%0A        import matplotlib%0A    except ImportError:%0A        return %22Matplotlib not installed%22%0A    try:%0A        dash.Dash('Test')%0A    except BaseException as e:%0A        return f%22Runtime error: %7Be%7D
 %22%0A    return
@@ -1611,18 +1611,16 @@
 n 'OK'%0A%0A
-%0A%0A
 math.ass
@@ -1802,16 +1802,50 @@
 erified.
+ phiFlow version %7Bphi.__version__%7D
 %5CnWeb in

Update verify.py