Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/matplotlib/matplotlib
/ _ensure_file
Method
_ensure_file
lib/matplotlib/backends/backend_pdf.py:2655–2658 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2653
self.close()
2654
2655
def
_ensure_file(self):
2656
if
self._file is None:
2657
self._file = PdfFile(self._filename, metadata=self._metadata)
# init.
2658
return
self._file
2659
2660
def
close(self):
2661
""
"
Callers
4
infodict
Method · 0.95
get_pagecount
Method · 0.95
attach_note
Method · 0.95
print_pdf
Method · 0.80
Calls
1
PdfFile
Class · 0.85
Tested by
no test coverage detected