Created
August 6, 2016 07:07
-
-
Save ptosco/d13b82b75f10d9a602e45d815215a98f to your computer and use it in GitHub Desktop.
Label deuterium and tritium using new C++/Python code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"import rdkit\n", | |
"from rdkit import Chem\n", | |
"from rdkit.Chem import rdmolops, rdDepictor, Draw\n", | |
"from rdkit.Chem.Draw import rdMolDraw2D\n", | |
"from rdkit.Chem.Draw.MolDrawing import MolDrawing, DrawingOptions\n", | |
"from rdkit.Chem.Draw import IPythonConsole\n", | |
"from IPython.display import SVG" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"DrawingOptions.atomLabelDeuteriumTritium = False" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"deuterium = Chem.MolFromSmiles('C([2H])([2H])([2H])[2H]')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAKyklEQVR4nO3df0zUhR/H8RcguXI7\nfqg1GGWum5UKFgOjDBa0U4Rpcn+ktElrrPyjNmv3h1vrD/urH5upfzf7I5s2mpxCY67bDqeSPyh2\nY5RRFJmBUaHIcsipd98/IqdLv3Fwdx+49/Px3x3H5/P+fP64J5/PfbhPWjQajQoAAKPSnR4AAAAn\nEUIAgGmEEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYI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CAaYQQAGAaIQQAmEYIAQCmEUIAgGmE\nEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmE\nEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmE\nEABg2v8Ay4OY4CisAAYAAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<rdkit.Chem.rdchem.Mol at 0x1c6ccb42760>" | |
] | |
}, | |
"execution_count": 4, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"deuterium" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"tritium= Chem.MolFromSmiles('C([3H])([3H])([3H])[3H]')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAK2ElEQVR4nO3db0xVhR/H8Q8guXK7\n/DFrMMr4dWelgsXALIMF7SrBNOFBSpu0xsoHtVnjgVvrgT3qz0bq40YPskmjyVVozHW3i1PJP9Td\nHaPMosgMjRpyZTnkqvf+HvykdD8tgXvvudzv+/WMA5zzPecBb865596TFo1GowIAwKh0pwcAAMBJ\nhBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmEEABgGiEEAJhGCAEAphFCAIBp\nhBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmEEABgGiEEAJhGCAEAphFCAIBp\nhBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmEEABgGiEEAJhGCAEAphFCAIBp\nhBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgG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CmEUIAgGmEEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYR\nQgCAaYQQAGAaIQQAmEYIAQCm/RcPhItA+PYKbAAAAABJRU5ErkJggg==\n", | |
"text/plain": [ | |
"<rdkit.Chem.rdchem.Mol at 0x1c6cceaa3a0>" | |
] | |
}, | |
"execution_count": 6, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"tritium" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"DrawingOptions.atomLabelDeuteriumTritium = True" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAKTElEQVR4nO3dX0zV9R/H8Rf/cuV2\nAEsLRjXlZJYJZWKWcSZsBxn4lwt0btKa05vcyHHhTW3eVReaXnjV6iK3ajQ5Co05z3ZwOBJF2ZHZ\n1EItDfFUKrAaeThyuvj9quEsA77nfOG8n4/LM/h+3t/vBU++53y/55sWj8fjAgDAqHS3BwAAwE2E\nEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmE\nEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmE\nEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmE\nEABgGiEEAJhGCAEAphFCAIBphBAAYBohBACYRggBAKYRQgCAaZluDwAkzUC3Pv+4TdfvebmopkH+\nua5M5A6OAzAGIYQxRapp8Ovvv/dXFNy9W0FzEeA4AH/irVEYN1f+LWX6pbNbA26P4iqOA+wihEBO\nrh67flGXB9wexGUcBx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C+fn5SV//8ccfV2VlpUKhkK5du5b09YFUQQiBCRgcHNTh\nw4dVUlKi5557zrU55s+fr5KSErW0tGhgYMC1OYDpjBAC4xSNRnXo0CEVFBTotddec3scLV++XE8/\n/bQCgYDu3Lnj9jjAtEMIgXHq6upSRkaGqqqqEnqF6HisXLlSWVlZOn36tNujANMOT58Axml0dFR3\n7tzRww8/7PYoYwwPD2vGjBlKT+f/W2A8CCEAwLTxPxsGSFUD3fr84zZdv+flopoG+ee6MtHEpMp+\nAElCCIExilTT4Nffvbii4O7dCk67iKTKfgCJx4cJwL+aK/+WMv3S2a0Bt0eZlFTZD8B5hBB4kJxc\nPXb9oi4PuD3IJKXKfgAOI4TAA+Xq0eR/cUwCpMp+AM4ihMAD3dbNe688mZZSZT8AZxFC4EGu9Kon\n/1nNy3F7kElKlf0AHEYIgX91RcGmHhUtW6wct0eZlFTZD8B53D4BjNGjpt1jH2s0Pe+/S5X9ABKP\nb5YBAJjGW6MAANMIIQDANEIIADCNEAIATCOEAADTCCEAwDRCCAAwjRACAEwjhAAA0wghAMA0QggA\nMI0QAgBMI4QAANMIIQDANEIIADCNEAIATCOEAADTCCEAwDRCCAAwjRACAEwjhAAA0wghAMA0QggA\nMI0QAgBMI4QAANMIIQDANEIIADCNEAIATCOEAADTCCEAwDRCCAAwjRACAEwjhAAA0wghAMA0QggA\nMI0QAgBMI4QAANMIIQDANEIIADCNEAIATCOEAADTCCEAwDRCCAAwjRACAEwjhAAA0/4AHGMN73g1\n8G0AAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<rdkit.Chem.rdchem.Mol at 0x1c6ccb42760>" | |
] | |
}, | |
"execution_count": 8, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"deuterium" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcIAA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BohBACYRggBAKYRQgCAaYQQAGAaIQQAmEYIAQCmEUIAgGmEEABgGiEEAJj2\nH+I/vRh+ACGGAAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<rdkit.Chem.rdchem.Mol at 0x1c6cceaa3a0>" | |
] | |
}, | |
"execution_count": 9, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"tritium" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 10, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"def drawMol2DCpp(mol, labelDeuteriumTritium):\n", | |
" drawer = rdMolDraw2D.MolDraw2DSVG(200,200)\n", | |
" opts = drawer.drawOptions()\n", | |
" opts.atomLabelDeuteriumTritium = labelDeuteriumTritium\n", | |
" rdDepictor.Compute2DCoords(mol)\n", | |
" drawer.DrawMolecule(mol)\n", | |
" drawer.FinishDrawing()\n", | |
" svg = drawer.GetDrawingText()\n", | |
" return svg.replace('svg:','')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 11, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<svg baseProfile=\"full\" height=\"200px\" version=\"1.1\" width=\"200px\" xml:space=\"preserve\" xmlns:rdkit=\"http://www.rdkit.org/xml\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<rect height=\"200\" style=\"opacity:1.0;fill:#FFFFFF;stroke:none\" width=\"200\" x=\"0\" y=\"0\"> </rect>\n", | |
"<path d=\"M 100,90.4493 153.175,59.7487\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,90.4493 46.825,59.7487\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,90.4493 60.772,137.199\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,90.4493 139.228,137.199\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"153.175\" y=\"62.8005\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">2</tspan><tspan>H</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"28.8178\" y=\"62.8005\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">2</tspan><tspan>H</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"44.8458\" y=\"153.699\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">2</tspan><tspan>H</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"137.147\" y=\"153.699\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">2</tspan><tspan>H</tspan></text>\n", | |
"</svg>" | |
], | |
"text/plain": [ | |
"<IPython.core.display.SVG object>" | |
] | |
}, | |
"execution_count": 11, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"SVG(drawMol2DCpp(deuterium, False))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<svg baseProfile=\"full\" height=\"200px\" version=\"1.1\" width=\"200px\" xml:space=\"preserve\" xmlns:rdkit=\"http://www.rdkit.org/xml\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<rect height=\"200\" style=\"opacity:1.0;fill:#FFFFFF;stroke:none\" width=\"200\" x=\"0\" y=\"0\"> </rect>\n", | |
"<path d=\"M 100,90.4493 153.175,59.7487\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,90.4493 46.825,59.7487\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,90.4493 60.772,137.199\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,90.4493 139.228,137.199\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"153.175\" y=\"62.8005\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">3</tspan><tspan>H</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"28.8178\" y=\"62.8005\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">3</tspan><tspan>H</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"44.8458\" y=\"153.699\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">3</tspan><tspan>H</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"137.147\" y=\"153.699\"><tspan style=\"baseline-shift:super;font-size:11.25px;\">3</tspan><tspan>H</tspan></text>\n", | |
"</svg>" | |
], | |
"text/plain": [ | |
"<IPython.core.display.SVG object>" | |
] | |
}, | |
"execution_count": 12, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"SVG(drawMol2DCpp(tritium, False))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 13, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<svg baseProfile=\"full\" height=\"200px\" version=\"1.1\" width=\"200px\" xml:space=\"preserve\" xmlns:rdkit=\"http://www.rdkit.org/xml\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<rect height=\"200\" style=\"opacity:1.0;fill:#FFFFFF;stroke:none\" width=\"200\" x=\"0\" y=\"0\"> </rect>\n", | |
"<path d=\"M 100,89.5294 161.667,53.9259\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,89.5294 38.333,53.9259\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,89.5294 55.6974,142.327\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,89.5294 144.303,142.327\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"161.667\" y=\"57.6728\"><tspan>D</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"25.3318\" y=\"57.6728\"><tspan>D</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"42.9035\" y=\"157.327\"><tspan>D</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"144.095\" y=\"157.327\"><tspan>D</tspan></text>\n", | |
"</svg>" | |
], | |
"text/plain": [ | |
"<IPython.core.display.SVG object>" | |
] | |
}, | |
"execution_count": 13, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"SVG(drawMol2DCpp(deuterium, True))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 14, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/svg+xml": [ | |
"<svg baseProfile=\"full\" height=\"200px\" version=\"1.1\" width=\"200px\" xml:space=\"preserve\" xmlns:rdkit=\"http://www.rdkit.org/xml\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n", | |
"<rect height=\"200\" style=\"opacity:1.0;fill:#FFFFFF;stroke:none\" width=\"200\" x=\"0\" y=\"0\"> </rect>\n", | |
"<path d=\"M 100,89.1106 165.393,51.356\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,89.1106 34.6071,51.356\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,89.1106 52.8816,145.264\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<path d=\"M 100,89.1106 147.118,145.264\" style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"/>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"165.393\" y=\"55.6799\"><tspan>T</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"23.6047\" y=\"55.6799\"><tspan>T</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"41.8792\" y=\"159.32\"><tspan>T</tspan></text>\n", | |
"<text style=\"font-size:15px;font-style:normal;font-weight:normal;fill-opacity:1;stroke:none;font-family:sans-serif;text-anchor:start;fill:#000000\" x=\"147.118\" y=\"159.32\"><tspan>T</tspan></text>\n", | |
"</svg>" | |
], | |
"text/plain": [ | |
"<IPython.core.display.SVG object>" | |
] | |
}, | |
"execution_count": 14, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"SVG(drawMol2DCpp(tritium, True))" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.5.1" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment