Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ test_code_from_file
Function
test_code_from_file
IPython/lib/tests/test_display.py:264–266 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
262
return
struct.unpack(
'<%sh'
% num_samples, wave_data)
263
264
def
test_code_from_file():
265
c = display.Code(filename=__file__)
266
assert c._repr_html_().startswith(
'<style>'
)
Callers
nothing calls this directly
Calls
1
_repr_html_
Method · 0.95
Tested by
no test coverage detected