Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0a579 commit 14eadebCopy full SHA for 14eadeb
1 file changed
lib/matplotlib/backends/backend_nbagg.py
@@ -7,6 +7,7 @@
7
import io
8
import json
9
import os
10
+import pathlib
11
import uuid
12
13
from IPython.display import display, Javascript, HTML
@@ -111,7 +112,8 @@ def get_javascript(cls, stream=None):
111
112
else:
113
output = stream
114
super().get_javascript(stream=output)
- output.write((Path(__file__).parent / "web_backend/js/nbagg_mpl.js")
115
+ output.write((pathlib.Path(__file__).parent
116
+ / "web_backend/js/nbagg_mpl.js")
117
.read_text(encoding="utf-8"))
118
if stream is None:
119
return output.getvalue()
0 commit comments