##// END OF EJS Templates
Start refactoring handling of color....
Start refactoring handling of color. This is one more step into getting rid of the old way of handling colors in IPython, in particular here we move the scheme/style as a configuration option of the parser instead of passing it around into the formats functions. Also remove our own usage of deprecated arguments.

File last commit:

r18354:4bd9a4c3
r22911:4335860f
Show More
other_kernels.svg
332 lines | 13.9 KiB | image/svg+xml | TextLexer
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="589.86841"
height="532.51233"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="other_kernels.svg"
inkscape:export-filename="/home/takluyver/Code/ipython/docs/source/development/figs/ipy_kernel_and_terminal.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100">
<defs
id="defs4">
<marker
inkscape:stockid="Arrow2Lend"
orient="auto"
refY="0"
refX="0"
id="Arrow2Lend"
style="overflow:visible">
<path
id="path3857"
style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
inkscape:connector-curvature="0" />
</marker>
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 526.18109 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="764.09448 : 613.32395 : 1"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
id="perspective3814" />
<marker
inkscape:stockid="Arrow2Lend"
orient="auto"
refY="0"
refX="0"
id="Arrow2Lend-3"
style="overflow:visible">
<path
inkscape:connector-curvature="0"
id="path3857-5"
style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="matrix(-1.1,0,0,-1.1,-1.1,0)" />
</marker>
<marker
inkscape:stockid="Arrow2Lend"
orient="auto"
refY="0"
refX="0"
id="Arrow2Lend-4"
style="overflow:visible">
<path
id="path3857-0"
style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
inkscape:connector-curvature="0" />
</marker>
<marker
inkscape:stockid="Arrow2Lend"
orient="auto"
refY="0"
refX="0"
id="marker7174"
style="overflow:visible">
<path
id="path7176"
style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
inkscape:connector-curvature="0" />
</marker>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="26.0015"
inkscape:cy="66.637114"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:snap-object-midpoints="false"
inkscape:window-width="1680"
inkscape:window-height="1014"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
units="cm"
fit-margin-top="1"
fit-margin-right="1"
fit-margin-bottom="1"
fit-margin-left="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-96.410679,217.95483)">
<g
id="g3782"
transform="translate(61.428571,-349.14286)">
<path
transform="matrix(0.92727271,0,0,1.0231405,15.012992,-6.2896699)"
d="m 304.28571,282.36218 c 0,34.71504 -43.81213,62.85715 -97.85714,62.85715 -54.045,0 -97.85714,-28.14211 -97.85714,-62.85715 0,-34.71504 43.81214,-62.85714 97.85714,-62.85714 54.04501,0 97.85714,28.1421 97.85714,62.85714 z"
sodipodi:ry="62.857143"
sodipodi:rx="97.85714"
sodipodi:cy="282.36218"
sodipodi:cx="206.42857"
id="path3780"
style="fill:#800080;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
sodipodi:type="arc" />
<text
sodipodi:linespacing="125%"
id="text3768"
y="280.57758"
x="206.42125"
style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Droid Sans;-inkscape-font-specification:Droid Sans"
xml:space="preserve"><tspan
style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;text-anchor:middle;font-family:Droid Sans;-inkscape-font-specification:Droid Sans;fill:#ffffff;fill-opacity:1"
y="280.57758"
x="206.42125"
id="tspan3770"
sodipodi:role="line">$LANGUAGE</tspan><tspan
style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;text-anchor:middle;font-family:Droid Sans;-inkscape-font-specification:Droid Sans;fill:#ffffff;fill-opacity:1"
id="tspan3772"
y="318.07758"
x="206.42125"
sodipodi:role="line">execution</tspan></text>
</g>
<path
sodipodi:type="arc"
style="fill:#52b4ff;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path3798"
sodipodi:cx="260"
sodipodi:cy="685.93359"
sodipodi:rx="100"
sodipodi:ry="196.42857"
d="m 360,685.93359 c 0,108.48451 -44.77153,196.42858 -100,196.42858 -55.22847,0 -100,-87.94407 -100,-196.42858 0,-108.4845 44.77153,-196.42857 100,-196.42857 55.22847,0 100,87.94407 100,196.42857 z"
transform="matrix(1.1189801,0,0,0.92946844,-23.322527,-628.33705)" />
<text
xml:space="preserve"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Droid Sans;-inkscape-font-specification:Droid Sans"
x="270.04199"
y="44.647888"
id="text3802"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3804"
x="270.04199"
y="44.647888">IPython</tspan><tspan
sodipodi:role="line"
x="270.04199"
y="84.647888"
id="tspan3806">JSON, ØMQ</tspan><tspan
sodipodi:role="line"
x="270.04199"
y="124.64789"
id="tspan7160">machinery</tspan></text>
<text
xml:space="preserve"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Droid Sans;-inkscape-font-specification:Droid Sans Bold"
x="105.71431"
y="221.49724"
id="text3808"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3810"
x="105.71431"
y="221.49724">Wrapper</tspan><tspan
sodipodi:role="line"
x="105.71431"
y="261.49725"
id="tspan3812">Kernel</tspan></text>
<g
sodipodi:type="inkscape:box3d"
style="fill:#52b4ff;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="g3816"
inkscape:perspectiveID="#perspective3814"
inkscape:corner0="0.75968289 : 0.77789212 : 0 : 1"
inkscape:corner7="0.0055330806 : 0.38177683 : 0.99976299 : 1">
<path
sodipodi:type="inkscape:box3dside"
id="path3828"
style="fill:#e9e9ff;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="11"
d="m 508.07326,-461.53631 154.81767,-93.98694 0,197.53457 -154.81767,40.00122 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path3818"
style="fill:#353564;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="6"
d="m 307.83925,-554.01393 0,225.10607 200.23401,10.9204 0,-143.54885 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path3820"
style="fill:#4d4d9f;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="5"
d="m 307.83925,-554.01393 158.57143,-256.79275 196.48025,255.28343 -154.81767,93.98694 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path3826"
style="fill:#afafde;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="13"
d="m 307.83925,-328.90786 158.57143,-87.96321 196.48025,58.88239 -154.81767,40.00122 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path3824"
style="fill:#d7d7ff;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="14"
d="m 466.41068,-810.80668 0,393.93561 196.48025,58.88239 0,-197.53457 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path3822"
style="fill:#8686bf;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="3"
d="m 307.83925,-554.01393 158.57143,-256.79275 0,393.93561 -158.57143,87.96321 z" />
</g>
<g
id="g4300"
transform="translate(1.924434,-652)">
<path
inkscape:connector-curvature="0"
id="path3830"
d="m 275.71429,841.83443 0,84.28572"
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)" />
<path
inkscape:connector-curvature="0"
id="path3830-6"
d="m 255.66144,928.60421 0,-84.28572"
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)" />
</g>
<g
id="g7249"
transform="translate(0,7.3059)">
<path
transform="matrix(1.1189801,0,0,0.92946844,246.7999,-635.64295)"
d="m 360,685.93359 c 0,108.48451 -44.77153,196.42858 -100,196.42858 -55.22847,0 -100,-87.94407 -100,-196.42858 0,-108.4845 44.77153,-196.42857 100,-196.42857 55.22847,0 100,87.94407 100,196.42857 z"
sodipodi:ry="196.42857"
sodipodi:rx="100"
sodipodi:cy="685.93359"
sodipodi:cx="260"
id="path3798-7"
style="fill:#800080;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
sodipodi:type="arc" />
<text
sodipodi:linespacing="125%"
id="text3802-3"
y="-69.79245"
x="537.72693"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Droid Sans;-inkscape-font-specification:Droid Sans"
xml:space="preserve"><tspan
y="-69.79245"
x="537.72693"
id="tspan3804-4"
sodipodi:role="line">$LANGUAGE</tspan><tspan
id="tspan7245"
y="-29.79245"
x="537.72693"
sodipodi:role="line">execution</tspan><tspan
id="tspan7247"
y="10.20755"
x="537.72693"
sodipodi:role="line">&amp;</tspan><tspan
id="tspan3806-2"
y="50.20755"
x="537.72693"
sodipodi:role="line">JSON, ØMQ</tspan><tspan
id="tspan7160-8"
y="90.20755"
x="537.72693"
sodipodi:role="line">machinery</tspan></text>
</g>
<g
id="g4300-0"
transform="translate(272.04686,-652)">
<path
inkscape:connector-curvature="0"
id="path3830-9"
d="m 275.71429,841.83443 0,84.28572"
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)" />
<path
inkscape:connector-curvature="0"
id="path3830-6-4"
d="m 255.66144,928.60421 0,-84.28572"
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)" />
</g>
<text
xml:space="preserve"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Droid Sans;-inkscape-font-specification:Droid Sans Bold"
x="576.15625"
y="222.96599"
id="text3808-4"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3810-1"
x="576.15625"
y="222.96599">Native</tspan><tspan
sodipodi:role="line"
x="576.15625"
y="262.96597"
id="tspan3812-5">Kernel</tspan></text>
</g>
</svg>