Interleave output coming from Python and C++ in Python notebooks
Interleave output coming from Python and C++ in Python notebooks

modify the output capturer in order to be able to interleave
Python and C++ output coming from the same cell.
The expected behaviour is now:

print "py1"
ROOT.gInterpreter.ProcessLine('cout << "cpp1" << endl;')
print "py2"

-----

py1
cpp1
py2

and not

py1
py2
cpp1

For more details, see
https://root.cern.ch/phpBB3/viewtopic.php?f=14&t=21083&p=91545&hilit=notebook#p91545

gbitzes/root,olifre/root,beniz/root,gbitzes/root,simonpf/root,beniz/root,karies/root,thomaskeck/root,thomaskeck/root,abhinavmoudgil95/root,georgtroska/root,veprbl/root,root-mirror/root,agarciamontoro/root,gbitzes/root,olifre/root,davidlt/root,veprbl/root,root-mirror/root,gbitzes/root,root-mirror/root,davidlt/root,agarciamontoro/root,mhuwiler/rootauto,olifre/root,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,sawenzel/root,olifre/root,abhinavmoudgil95/root,Y--/root,mhuwiler/rootauto,root-mirror/root,karies/root,olifre/root,mhuwiler/rootauto,root-mirror/root,gbitzes/root,bbockelm/root,satyarth934/root,gbitzes/root,Y--/root,zzxuanyuan/root-compressor-dummy,georgtroska/root,georgtroska/root,beniz/root,gganis/root,veprbl/root,bbockelm/root,thomaskeck/root,mhuwiler/rootauto,pspe/root,satyarth934/root,pspe/root,agarciamontoro/root,agarciamontoro/root,lgiommi/root,krafczyk/root,simonpf/root,davidlt/root,gbitzes/root,pspe/root,davidlt/root,thomaskeck/root,gganis/root,pspe/root,beniz/root,sawenzel/root,BerserkerTroll/root,satyarth934/root,simonpf/root,Y--/root,beniz/root,thomaskeck/root,gganis/root,pspe/root,beniz/root,davidlt/root,krafczyk/root,krafczyk/root,olifre/root,karies/root,root-mirror/root,zzxuanyuan/root,veprbl/root,sawenzel/root,root-mirror/root,Y--/root,satyarth934/root,buuck/root,zzxuanyuan/root,thomaskeck/root,zzxuanyuan/root,BerserkerTroll/root,veprbl/root,georgtroska/root,gbitzes/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,pspe/root,agarciamontoro/root,gbitzes/root,buuck/root,beniz/root,zzxuanyuan/root-compressor-dummy,BerserkerTroll/root,CristinaCristescu/root,zzxuanyuan/root,buuck/root,CristinaCristescu/root,buuck/root,thomaskeck/root,thomaskeck/root,gganis/root,agarciamontoro/root,Y--/root,georgtroska/root,georgtroska/root,pspe/root,davidlt/root,veprbl/root,zzxuanyuan/root-compressor-dummy,krafczyk/root,BerserkerTroll/root,karies/root,veprbl/root,agarciamontoro/root,satyarth934/root,olifre/root,davidlt/root,krafczyk/root,georgtroska/root,Y--/root,beniz/root,karies/root,karies/root,krafczyk/root,zzxuanyuan/root-compressor-dummy,olifre/root,CristinaCristescu/root,davidlt/root,lgiommi/root,zzxuanyuan/root-compressor-dummy,veprbl/root,abhinavmoudgil95/root,Y--/root,zzxuanyuan/root-compressor-dummy,georgtroska/root,thomaskeck/root,Y--/root,georgtroska/root,beniz/root,BerserkerTroll/root,buuck/root,georgtroska/root,agarciamontoro/root,CristinaCristescu/root,gganis/root,agarciamontoro/root,mhuwiler/rootauto,lgiommi/root,buuck/root,CristinaCristescu/root,pspe/root,abhinavmoudgil95/root,gganis/root,agarciamontoro/root,karies/root,CristinaCristescu/root,simonpf/root,satyarth934/root,buuck/root,bbockelm/root,olifre/root,zzxuanyuan/root,root-mirror/root,davidlt/root,pspe/root,satyarth934/root,bbockelm/root,sawenzel/root,davidlt/root,veprbl/root,karies/root,krafczyk/root,simonpf/root,zzxuanyuan/root-compressor-dummy,sawenzel/root,lgiommi/root,sawenzel/root,zzxuanyuan/root,gbitzes/root,sawenzel/root,zzxuanyuan/root,bbockelm/root,simonpf/root,BerserkerTroll/root,CristinaCristescu/root,BerserkerTroll/root,Y--/root,karies/root,mhuwiler/rootauto,lgiommi/root,BerserkerTroll/root,root-mirror/root,CristinaCristescu/root,mhuwiler/rootauto,root-mirror/root,pspe/root,sawenzel/root,bbockelm/root,CristinaCristescu/root,karies/root,zzxuanyuan/root,simonpf/root,beniz/root,krafczyk/root,lgiommi/root,veprbl/root,abhinavmoudgil95/root,lgiommi/root,beniz/root,gganis/root,satyarth934/root,lgiommi/root,veprbl/root,agarciamontoro/root,sawenzel/root,olifre/root,davidlt/root,simonpf/root,lgiommi/root,zzxuanyuan/root,bbockelm/root,gganis/root,CristinaCristescu/root,abhinavmoudgil95/root,bbockelm/root,buuck/root,thomaskeck/root,zzxuanyuan/root,gbitzes/root,abhinavmoudgil95/root,lgiommi/root,mhuwiler/rootauto,zzxuanyuan/root,abhinavmoudgil95/root,satyarth934/root,gganis/root,Y--/root,krafczyk/root,simonpf/root,root-mirror/root,buuck/root,simonpf/root,simonpf/root,zzxuanyuan/root,buuck/root,karies/root,georgtroska/root,pspe/root,CristinaCristescu/root,BerserkerTroll/root,sawenzel/root,Y--/root,satyarth934/root,gganis/root,krafczyk/root,sawenzel/root,mhuwiler/rootauto,bbockelm/root,BerserkerTroll/root,abhinavmoudgil95/root,abhinavmoudgil95/root,bbockelm/root,krafczyk/root,buuck/root,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,satyarth934/root,BerserkerTroll/root,zzxuanyuan/root-compressor-dummy,olifre/root,lgiommi/root,gganis/root,bbockelm/root