1f09d1866cafb3e16e628f9f1bfd91471acc0988,lib/matplotlib/backends/backend_nbagg.py,FigureManagerNbAgg,get_javascript,#Any#Any#,108

Before Change


        else:
            output = stream
        super().get_javascript(stream=output)
        with io.open(os.path.join(
                os.path.dirname(__file__),
                "web_backend", "js",
                "nbagg_mpl.js"), encoding="utf8") as fd:
            output.write(fd.read())
        if stream is None:
            return output.getvalue()

    def _create_comm(self):

After Change


        else:
            output = stream
        super().get_javascript(stream=output)
        output.write((Path(__file__).parent / "web_backend/js/nbagg_mpl.js")
                     .read_text(encoding="utf-8"))
        if stream is None:
            return output.getvalue()

    def _create_comm(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: matplotlib/matplotlib
Commit Name: 1f09d1866cafb3e16e628f9f1bfd91471acc0988
Time: 2018-05-29
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_nbagg.py
Class Name: FigureManagerNbAgg
Method Name: get_javascript


Project Name: streamlit/streamlit
Commit Name: 5ca403cee17ee1e2a704e03bf06d47f2ce9ba222
Time: 2020-02-06
Author: naomi@nthmost.com
File Name: examples/audio.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 1f09d1866cafb3e16e628f9f1bfd91471acc0988
Time: 2018-05-29
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_webagg_core.py
Class Name: FigureManagerWebAgg
Method Name: get_javascript