

The main process uses stdin and stdout/stderr PIPE to communiate with the subprocess. Note: the ipython subprocess running on compute node will not complete unless killed. Dream Journal: 6x9 Dream Journal Flowers I Dreaming Journal INotebook For Your Dreams And Their Interpretations I Interactive Dream Journal I Dream Diary With Flowers Publishing, Dream Journals on. use PIPE stdin and stdout to communcate with the compute node, make sure the tunnel is created, then print “sucess” message to user. Originally designed for use as an electronic lab notebook for computational science, it is increasingly being used in teaching as well, and a rich ecosystem of. Open another subprocess with command “ssh -L ipynbport:localhost:ipynbport computenode-hostname”, create a ssh tunnel from compute node to head node. At this step, this script still runs at head node.After the job starts, the subprocess is on compute node, use a hostname command to get the compute node’s hostname back, then start the IPython notebook server on compute node, wait until the notebook server starts. If you have an active cluster to which you want to attach the notebook, leave the default Choose an existing cluster selected, click Choose, select a cluster from the list, and then click Choose cluster. Enter a Notebook name and an optional Notebook description. On head node, open a subprocess to force pseudo terminal on localhost, then submit a qsub script to start an interactive job, and wait for the job to start. Open the Amazon EMR console at Choose Notebooks, Create notebook.This is used for python Popen subprocess to send command through STDIN pipe even tho STDIN doesn’t exist. Although the way to operate IPython with Bluemix is widely known (see link.

A pseudo-terminal is mainly used to make a process believe that it interacts with a terminal (with stdin and stdout) although it actually interacts with one or more processes. The 23rd topic of Cloud Foundry 100-Day Challenge is IPython Notebook.

use “ssh -t -t -4 localhost” to force pseudo terminal.
