Skip to content

Instantly share code, notes, and snippets.

@krassowski
Created May 19, 2021 13:41
Show Gist options
  • Save krassowski/1adfb75d7f291b381557c42df00390e8 to your computer and use it in GitHub Desktop.
Save krassowski/1adfb75d7f291b381557c42df00390e8 to your computer and use it in GitHub Desktop.
nbdime failure repro
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"576pt\" height=\"360pt\" viewBox=\"0 0 576 360\" version=\"1.1\">\n",
"<defs>\n",
"<g>\n",
"<symbol overflow=\"visible\" id=\"glyph0-2\">\n",
"<path style=\"stroke:none;\" d=\"M 4.609375 -6.78125 L 3.828125 -6.78125 L 3.828125 -4.265625 C 3.5 -4.75 2.984375 -5.015625 2.328125 -5.015625 C 1.0625 -5.015625 0.234375 -4 0.234375 -2.4375 C 0.234375 -0.796875 1.046875 0.21875 2.359375 0.21875 C 3.03125 0.21875 3.5 -0.03125 3.90625 -0.640625 L 3.90625 0 L 4.609375 0 Z M 2.46875 -4.28125 C 3.296875 -4.28125 3.828125 -3.546875 3.828125 -2.375 C 3.828125 -1.25 3.296875 -0.515625 2.46875 -0.515625 C 1.625 -0.515625 1.046875 -1.265625 1.046875 -2.40625 C 1.046875 -3.53125 1.625 -4.28125 2.46875 -4.28125 Z M 2.46875 -4.28125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-3\">\n",
"<path style=\"stroke:none;\" d=\"M 0.65625 -6.78125 L 0.65625 0 L 1.421875 0 L 1.421875 -2.6875 C 1.421875 -3.6875 1.9375 -4.328125 2.75 -4.328125 C 3 -4.328125 3.25 -4.265625 3.4375 -4.125 C 3.65625 -3.953125 3.75 -3.71875 3.75 -3.375 L 3.75 0 L 4.515625 0 L 4.515625 -3.6875 C 4.515625 -4.5 3.9375 -5.015625 2.984375 -5.015625 C 2.296875 -5.015625 1.875 -4.796875 1.421875 -4.203125 L 1.421875 -6.78125 Z M 0.65625 -6.78125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-4\">\n",
"<path style=\"stroke:none;\" d=\"M 4.765625 -2.171875 C 4.765625 -2.921875 4.71875 -3.359375 4.578125 -3.734375 C 4.265625 -4.53125 3.515625 -5.015625 2.609375 -5.015625 C 1.25 -5.015625 0.375 -3.984375 0.375 -2.375 C 0.375 -0.765625 1.203125 0.21875 2.578125 0.21875 C 3.703125 0.21875 4.46875 -0.421875 4.671875 -1.484375 L 3.890625 -1.484375 C 3.671875 -0.84375 3.234375 -0.5 2.609375 -0.5 C 2.125 -0.5 1.703125 -0.71875 1.4375 -1.140625 C 1.25 -1.40625 1.1875 -1.6875 1.1875 -2.171875 Z M 1.203125 -2.8125 C 1.265625 -3.703125 1.8125 -4.296875 2.59375 -4.296875 C 3.390625 -4.296875 3.9375 -3.6875 3.9375 -2.8125 Z M 1.203125 -2.8125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-5\">\n",
"<path style=\"stroke:none;\" d=\"M 4.078125 -3.515625 C 4.0625 -4.46875 3.4375 -5.015625 2.3125 -5.015625 C 1.171875 -5.015625 0.4375 -4.421875 0.4375 -3.53125 C 0.4375 -2.765625 0.828125 -2.40625 1.984375 -2.125 L 2.703125 -1.9375 C 3.25 -1.8125 3.453125 -1.625 3.453125 -1.28125 C 3.453125 -0.8125 3 -0.5 2.328125 -0.5 C 1.90625 -0.5 1.546875 -0.625 1.359375 -0.828125 C 1.234375 -0.96875 1.1875 -1.109375 1.140625 -1.453125 L 0.3125 -1.453125 C 0.359375 -0.328125 0.984375 0.21875 2.265625 0.21875 C 3.484375 0.21875 4.265625 -0.390625 4.265625 -1.328125 C 4.265625 -2.046875 3.859375 -2.453125 2.890625 -2.6875 L 2.140625 -2.859375 C 1.515625 -3.015625 1.25 -3.21875 1.25 -3.5625 C 1.25 -4.015625 1.640625 -4.296875 2.28125 -4.296875 C 2.90625 -4.296875 3.234375 -4.03125 3.25 -3.515625 Z M 4.078125 -3.515625 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-6\">\n",
"<path style=\"stroke:none;\" d=\"M 1.390625 -4.875 L 0.625 -4.875 L 0.625 0 L 1.390625 0 Z M 1.390625 -6.78125 L 0.609375 -6.78125 L 0.609375 -5.796875 L 1.390625 -5.796875 Z M 1.390625 -6.78125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-7\">\n",
"<path style=\"stroke:none;\" d=\"M 2.53125 -5.015625 C 1.15625 -5.015625 0.328125 -4.03125 0.328125 -2.40625 C 0.328125 -0.75 1.15625 0.21875 2.53125 0.21875 C 3.90625 0.21875 4.734375 -0.765625 4.734375 -2.359375 C 4.734375 -4.046875 3.9375 -5.015625 2.53125 -5.015625 Z M 2.53125 -4.296875 C 3.40625 -4.296875 3.9375 -3.578125 3.9375 -2.375 C 3.9375 -1.21875 3.390625 -0.5 2.53125 -0.5 C 1.671875 -0.5 1.140625 -1.21875 1.140625 -2.40625 C 1.140625 -3.578125 1.671875 -4.296875 2.53125 -4.296875 Z M 2.53125 -4.296875 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-8\">\n",
"<path style=\"stroke:none;\" d=\"M 0.65625 -4.875 L 0.65625 0 L 1.4375 0 L 1.4375 -2.6875 C 1.4375 -3.6875 1.953125 -4.328125 2.75 -4.328125 C 3.359375 -4.328125 3.75 -3.953125 3.75 -3.375 L 3.75 0 L 4.53125 0 L 4.53125 -3.6875 C 4.53125 -4.484375 3.921875 -5.015625 2.984375 -5.015625 C 2.265625 -5.015625 1.796875 -4.734375 1.359375 -4.046875 L 1.359375 -4.875 Z M 0.65625 -4.875 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-9\">\n",
"<path style=\"stroke:none;\" d=\"M 0.65625 -4.875 L 0.65625 0 L 1.4375 0 L 1.4375 -3.0625 C 1.4375 -3.765625 1.9375 -4.328125 2.578125 -4.328125 C 3.15625 -4.328125 3.484375 -3.984375 3.484375 -3.359375 L 3.484375 0 L 4.265625 0 L 4.265625 -3.0625 C 4.265625 -3.765625 4.765625 -4.328125 5.40625 -4.328125 C 5.96875 -4.328125 6.296875 -3.96875 6.296875 -3.359375 L 6.296875 0 L 7.078125 0 L 7.078125 -3.65625 C 7.078125 -4.53125 6.578125 -5.015625 5.671875 -5.015625 C 5.015625 -5.015625 4.625 -4.8125 4.171875 -4.265625 C 3.890625 -4.78125 3.5 -5.015625 2.859375 -5.015625 C 2.21875 -5.015625 1.78125 -4.765625 1.359375 -4.1875 L 1.359375 -4.875 Z M 0.65625 -4.875 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-10\">\n",
"<path style=\"stroke:none;\" d=\"M 2.359375 -4.875 L 1.5625 -4.875 L 1.5625 -6.203125 L 0.796875 -6.203125 L 0.796875 -4.875 L 0.125 -4.875 L 0.125 -4.234375 L 0.796875 -4.234375 L 0.796875 -0.5625 C 0.796875 -0.0625 1.125 0.21875 1.734375 0.21875 C 1.9375 0.21875 2.09375 0.1875 2.359375 0.15625 L 2.359375 -0.5 C 2.25 -0.46875 2.140625 -0.46875 1.984375 -0.46875 C 1.65625 -0.46875 1.5625 -0.5625 1.5625 -0.90625 L 1.5625 -4.234375 L 2.359375 -4.234375 Z M 2.359375 -4.875 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-11\">\n",
"<path style=\"stroke:none;\" d=\"M 0.640625 -4.875 L 0.640625 0 L 1.421875 0 L 1.421875 -2.53125 C 1.4375 -3.703125 1.921875 -4.21875 2.984375 -4.1875 L 2.984375 -4.984375 C 2.859375 -5 2.78125 -5.015625 2.6875 -5.015625 C 2.1875 -5.015625 1.796875 -4.71875 1.359375 -3.984375 L 1.359375 -4.875 Z M 0.640625 -4.875 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-12\">\n",
"<path style=\"stroke:none;\" d=\"M 4.484375 0 L 4.484375 -4.875 L 3.703125 -4.875 L 3.703125 -2.109375 C 3.703125 -1.109375 3.1875 -0.46875 2.375 -0.46875 C 1.765625 -0.46875 1.375 -0.84375 1.375 -1.421875 L 1.375 -4.875 L 0.609375 -4.875 L 0.609375 -1.109375 C 0.609375 -0.3125 1.203125 0.21875 2.15625 0.21875 C 2.875 0.21875 3.328125 -0.03125 3.78125 -0.671875 L 3.78125 0 Z M 4.484375 0 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-13\">\n",
"<path style=\"stroke:none;\" d=\"M 1.40625 -6.78125 L 0.625 -6.78125 L 0.625 0 L 1.40625 0 Z M 1.40625 -6.78125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-14\">\n",
"<path style=\"stroke:none;\" d=\"M 0.5 2.03125 L 1.28125 2.03125 L 1.28125 -0.515625 C 1.6875 -0.015625 2.140625 0.21875 2.78125 0.21875 C 4.046875 0.21875 4.859375 -0.796875 4.859375 -2.359375 C 4.859375 -3.984375 4.0625 -5.015625 2.765625 -5.015625 C 2.109375 -5.015625 1.578125 -4.71875 1.21875 -4.140625 L 1.21875 -4.875 L 0.5 -4.875 Z M 2.640625 -4.28125 C 3.5 -4.28125 4.046875 -3.53125 4.046875 -2.375 C 4.046875 -1.265625 3.484375 -0.515625 2.640625 -0.515625 C 1.8125 -0.515625 1.28125 -1.25 1.28125 -2.40625 C 1.28125 -3.546875 1.8125 -4.28125 2.640625 -4.28125 Z M 2.640625 -4.28125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-15\">\n",
"<path style=\"stroke:none;\" d=\"\"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-16\">\n",
"<path style=\"stroke:none;\" d=\"M 2.5625 -6.71875 C 1.9375 -6.71875 1.390625 -6.4375 1.046875 -5.984375 C 0.609375 -5.390625 0.40625 -4.5 0.40625 -3.25 C 0.40625 -0.984375 1.140625 0.21875 2.5625 0.21875 C 3.953125 0.21875 4.71875 -0.984375 4.71875 -3.203125 C 4.71875 -4.5 4.515625 -5.375 4.078125 -5.984375 C 3.734375 -6.453125 3.171875 -6.71875 2.5625 -6.71875 Z M 2.5625 -6 C 3.4375 -6 3.875 -5.09375 3.875 -3.265625 C 3.875 -1.359375 3.453125 -0.46875 2.53125 -0.46875 C 1.671875 -0.46875 1.234375 -1.390625 1.234375 -3.25 C 1.234375 -5.09375 1.671875 -6 2.5625 -6 Z M 2.5625 -6 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-17\">\n",
"<path style=\"stroke:none;\" d=\"M 4.421875 -6.59375 L 1.015625 -6.59375 L 0.53125 -3 L 1.28125 -3 C 1.671875 -3.453125 1.984375 -3.609375 2.5 -3.609375 C 3.390625 -3.609375 3.9375 -3.015625 3.9375 -2.03125 C 3.9375 -1.09375 3.390625 -0.515625 2.484375 -0.515625 C 1.78125 -0.515625 1.34375 -0.875 1.140625 -1.625 L 0.328125 -1.625 C 0.4375 -1.078125 0.53125 -0.8125 0.71875 -0.578125 C 1.09375 -0.078125 1.765625 0.21875 2.515625 0.21875 C 3.84375 0.21875 4.765625 -0.75 4.765625 -2.140625 C 4.765625 -3.453125 3.90625 -4.34375 2.640625 -4.34375 C 2.171875 -4.34375 1.796875 -4.21875 1.421875 -3.9375 L 1.6875 -5.78125 L 4.421875 -5.78125 Z M 4.421875 -6.59375 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-18\">\n",
"<path style=\"stroke:none;\" d=\"M 2.40625 -4.78125 L 2.40625 0 L 3.21875 0 L 3.21875 -6.71875 L 2.6875 -6.71875 C 2.40625 -5.6875 2.21875 -5.546875 0.953125 -5.390625 L 0.953125 -4.78125 Z M 2.40625 -4.78125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-19\">\n",
"<path style=\"stroke:none;\" d=\"M 4.703125 -0.8125 L 1.234375 -0.8125 C 1.3125 -1.359375 1.625 -1.71875 2.421875 -2.21875 L 3.359375 -2.734375 C 4.28125 -3.25 4.75 -3.9375 4.75 -4.765625 C 4.75 -5.3125 4.53125 -5.84375 4.140625 -6.203125 C 3.75 -6.546875 3.265625 -6.71875 2.640625 -6.71875 C 1.796875 -6.71875 1.1875 -6.421875 0.8125 -5.84375 C 0.578125 -5.5 0.484375 -5.078125 0.46875 -4.390625 L 1.28125 -4.390625 C 1.3125 -4.859375 1.359375 -5.125 1.484375 -5.34375 C 1.6875 -5.75 2.125 -6 2.609375 -6 C 3.359375 -6 3.90625 -5.46875 3.90625 -4.734375 C 3.90625 -4.203125 3.609375 -3.734375 3.015625 -3.40625 L 2.171875 -2.90625 C 0.796875 -2.109375 0.390625 -1.484375 0.3125 -0.015625 L 4.703125 -0.015625 Z M 4.703125 -0.8125 \"/>\n",
"</symbol>\n",
"<symbol overflow=\"visible\" id=\"glyph0-20\">\n",
"<path style=\"stroke:none;\" d=\"M 0.734375 0 L 3.796875 0 C 4.4375 0 4.90625 -0.171875 5.265625 -0.5625 C 5.609375 -0.921875 5.796875 -1.40625 5.796875 -1.9375 C 5.796875 -2.75 5.421875 -3.25 4.5625 -3.578125 C 5.171875 -3.875 5.5 -4.359375 5.5 -5.0625 C 5.5 -5.5625 5.3125 -5.984375 4.953125 -6.296875 C 4.59375 -6.625 4.140625 -6.78125 3.484375 -6.78125 L 0.734375 -6.78125 Z M 1.59375 -3.859375 L 1.59375 -6.015625 L 3.265625 -6.015625 C 3.75 -6.015625 4.03125 -5.953125 4.265625 -5.765625 C 4.5 -5.59375 4.625 -5.3125 4.625 -4.9375 C 4.625 -4.5625 4.5 -4.28125 4.265625 -4.09375 C 4.03125 -3.921875 3.75 -3.859375 3.265625 -3.859375 Z M 1.59375 -0.765625 L 1.59375 -3.09375 L 3.703125 -3.09375 C 4.46875 -3.09375 4.921875 -2.65625 4.921875 -1.921875 C 4.921875 -1.203125 4.46875 -0.765625 3.703125 -0.765625 Z M 1.59375 -0.765625 \"/>\n",
"</symbol>\n",
"</g>\n",
"</defs>\n",
"<g id=\"surface110\">\n",
"<rect x=\"0\" y=\"0\" width=\"576\" height=\"360\" style=\"fill:rgb(100%,100%,100%);fill-opacity:1;stroke:none;\"/>\n",
"</g>\n",
"</svg>\n"
]
},
"metadata": {
"image/svg+xml": {
"isolated": true
}
},
"output_type": "display_data"
}
],
"source": [
"create_svg()"
]
}
],
"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.8.1"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment