##// END OF EJS Templates
Merge pull request #4787 from sn6uv/master...
Min RK -
r14170:591ffc66 merge
parent child Browse files
Show More
@@ -135,6 +135,8 b' class IPythonWidget(FrontendWidget):'
135 135 else:
136 136 self.set_default_style()
137 137
138 self._guiref_loaded = False
139
138 140 #---------------------------------------------------------------------------
139 141 # 'BaseFrontendMixin' abstract interface
140 142 #---------------------------------------------------------------------------
@@ -258,10 +260,21 b' class IPythonWidget(FrontendWidget):'
258 260 # This newline seems to be needed for text and html output.
259 261 self._append_plain_text(u'\n', True)
260 262
263 def _handle_kernel_info_reply(self, rep):
264 """ Handle kernel info replies.
265 """
266 if not self._guiref_loaded:
267 if rep['content']['language'] == 'python':
268 self._load_guiref_magic()
269 self._guiref_loaded = True
270
261 271 def _started_channels(self):
262 272 """Reimplemented to make a history request and load %guiref."""
263 273 super(IPythonWidget, self)._started_channels()
264 self._load_guiref_magic()
274
275 # The reply will trigger %guiref load provided language=='python'
276 self.kernel_client.kernel_info()
277
265 278 self.kernel_client.shell_channel.history(hist_access_type='tail',
266 279 n=1000)
267 280
General Comments 0
You need to be logged in to leave comments. Login now