MCPcopy Create free account
hub / github.com/ipython/ipython / reload

Method reload

IPython/lib/display.py:117–128  ·  view source on GitHub ↗

Reload the raw data from file or URL.

(self)

Source from the content-addressed store, hash-verified

115 self.data = Audio._make_wav(data, rate, normalize)
116
117 def reload(self):
118 """Reload the raw data from file or URL."""
119 import mimetypes
120 if self.embed:
121 super(Audio, self).reload()
122
123 if self.filename is not None:
124 self.mimetype = mimetypes.guess_type(self.filename)[0]
125 elif self.url is not None:
126 self.mimetype = mimetypes.guess_type(self.url)[0]
127 else:
128 self.mimetype = "audio/wav"
129
130 @staticmethod
131 def _make_wav(data, rate, normalize):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected