34b0c301dd2b57ecce97339d9ac7f0f29a7df825,starry/map/pybase.py,PythonMapBase,show,#PythonMapBase#Any#Any#Any#,148

Before Change



            // Business as usual
            if (gif is not None) and (gif != ""):
                if gif.endswith(".gif"):
                    gif = gif[:-4]
                ani.save("%s.gif" % gif, writer="imagemagick")
            else:
                plt.show()
            plt.close()

After Change


                try:
                    if "zmqshell" in str(type(get_ipython())):
                        plt.close()
                        display(HTML(ani.to_jshtml()))
                    else:
                        raise NameError("")
                except NameError:
                    plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rodluger/starry
Commit Name: 34b0c301dd2b57ecce97339d9ac7f0f29a7df825
Time: 2019-03-12
Author: rodluger@gmail.com
File Name: starry/map/pybase.py
Class Name: PythonMapBase
Method Name: show


Project Name: PIQuIL/QuCumber
Commit Name: f0a81e2d218aa41b538de5e5cfebcc149f758dc5
Time: 2018-07-20
Author: gtorlai@uwaterloo.ca
File Name: examples/rbm_tutorial.py
Class Name: BinomialRBM
Method Name: fit


Project Name: googledatalab/pydatalab
Commit Name: 7881da54aee99e31031a16010b08f4aeaf3949c8
Time: 2017-10-30
Author: qimingj@users.noreply.github.com
File Name: google/datalab/contrib/mlworkbench/commands/_ml.py
Class Name:
Method Name: _explain