##// END OF EJS Templates
Backport PR #5488: Added missing require and jquery from cdn....
Backport PR #5488: Added missing require and jquery from cdn. For some reason (I suppose some changes at the css level) the font size inside the input cells was fixed at 14 px... making the fonts really small in the reveal slideshows. This is really annoying... As a plus, I have also added the missing calls for require and jquery (as the full html template does). I think these fixes belong to 2.0, but I also know we are on the edge... so I hope to get it inside :wink: Cheers.

File last commit:

r16113:87737521
r16230:ba262623
Show More
inprocess_terminal.py
31 lines | 833 B | text/x-python | PythonLexer
Thomas Kluyver
Improve Python 3 compatibility for example scripts.
r13991 from __future__ import print_function
MinRK
add in-process kernel examples
r10305 import os
from IPython.kernel.inprocess import InProcessKernelManager
Martin Spacek
Fix `frontend` deprecation warnings in several examples
r11360 from IPython.terminal.console.interactiveshell import ZMQTerminalInteractiveShell
MinRK
add in-process kernel examples
r10305
def print_process_id():
Thomas Kluyver
Improve Python 3 compatibility for example scripts.
r13991 print('Process ID is:', os.getpid())
MinRK
add in-process kernel examples
r10305
def main():
print_process_id()
# Create an in-process kernel
# >>> print_process_id()
# will print the same process ID as the main process
kernel_manager = InProcessKernelManager()
kernel_manager.start_kernel()
kernel = kernel_manager.kernel
kernel.gui = 'qt4'
kernel.shell.push({'foo': 43, 'print_process_id': print_process_id})
client = kernel_manager.client()
client.start_channels()
MinRK
fix in process qt and in process examples
r10333 shell = ZMQTerminalInteractiveShell(manager=kernel_manager, client=client)
MinRK
add in-process kernel examples
r10305 shell.mainloop()
if __name__ == '__main__':
main()