Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Latest commit

 

History

History
441 lines (331 loc) · 14.2 KB

20560.md

File metadata and controls

441 lines (331 loc) · 14.2 KB

Issue 20560: html() of graphics doesn't work

archive/issues_020323.json:

{
    "assignees": [],
    "body": "<div id=\"comment:0\"></div>\n\nBasic offender:\n\n```\nhtml(plot(sin))\n```\nspits out TeX wrapped in `<script>`, can't work. Should probably be `<img>` with a data URI.\n\nRelated casualties are tables having plots as entries:\n\n```\nhtml(table([[1, plot(sin)]]))\n```\nis broken graphics and deprecation warnings.\n\nCC:  @kcrisman @paulmasson\n\nComponent: **user interface**\n\nAuthor: **Volker Braun**\n\nBranch/Commit: **[u/vbraun/html_of_graphics](https://github.com/sagemath/sagetrac-mirror/tree/u/vbraun/html_of_graphics) @ [`8e3170d`](https://github.com/sagemath/sagetrac-mirror/commit/8e3170d4c592b5d242ac2cecce996d9a35b7f3a0)**\n\n_Issue created by migration from https://trac.sagemath.org/ticket/20560_\n\n",
    "created_at": "2016-05-04T23:21:03Z",
    "labels": [
        "https://github.com/sagemath/sage/labels/c%3A%20user%20interface",
        "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
        "https://github.com/sagemath/sage/labels/bug",
        "https://github.com/sagemath/sage/labels/needs%20work"
    ],
    "reactions": [],
    "repository": "https://github.com/sagemath/sage",
    "title": "html() of graphics doesn't work",
    "type": "issue",
    "updated_at": "2022-12-29T01:35:57Z",
    "url": "https://github.com/sagemath/sage/issues/20560",
    "user": "https://github.com/vbraun"
}

Basic offender:

html(plot(sin))

spits out TeX wrapped in <script>, can't work. Should probably be <img> with a data URI.

Related casualties are tables having plots as entries:

html(table([[1, plot(sin)]]))

is broken graphics and deprecation warnings.

CC: @kcrisman @paulmasson

Component: user interface

Author: Volker Braun

Branch/Commit: u/vbraun/html_of_graphics @ 8e3170d

Issue created by migration from https://trac.sagemath.org/ticket/20560


archive/issue_events_287116.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2016-05-04T23:21:03Z",
    "event": "milestoned",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "milestone_number": null,
    "milestone_title": "sage-7.2",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287116"
}

archive/issue_events_287117.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2016-05-04T23:21:03Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "label": "https://github.com/sagemath/sage/labels/c%3A%20user%20interface",
    "label_color": "0000b0",
    "label_name": "c: user interface",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287117"
}

archive/issue_events_287118.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2016-05-04T23:21:03Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "label": "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
    "label_color": "ffbb00",
    "label_name": "p: major / 3",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287118"
}

archive/issue_events_287119.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2016-05-04T23:21:03Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "label": "https://github.com/sagemath/sage/labels/bug",
    "label_color": "d73a4a",
    "label_name": "bug",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287119"
}

archive/issue_comments_297105.json:

{
    "body": "Branch: **[u/vbraun/html_of_graphics](https://github.com/sagemath/sagetrac-mirror/tree/u/vbraun/html_of_graphics)**",
    "created_at": "2016-05-08T15:39:04Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297105",
    "user": "https://github.com/vbraun"
}

Branch: u/vbraun/html_of_graphics


archive/issue_comments_297106.json:

{
    "body": "Author: **Volker Braun**",
    "created_at": "2016-05-08T15:41:45Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297106",
    "user": "https://github.com/vbraun"
}

Author: Volker Braun


archive/issue_events_287120.json:

{
    "actor": "https://github.com/vbraun",
    "created_at": "2016-05-08T15:41:45Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287120"
}

archive/issue_comments_297107.json:

{
    "body": "<div id=\"comment:2\"></div>\n\nNew commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/11c75c9d825d35602e2a14543845726eabdb5dae\"><code>11c75c9</code></a></td><td><code>Enable saving to in-memory file-like objects</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/531533caaca28d66509c40a094e1e70900709b50\"><code>531533c</code></a></td><td><code>Add _html_() method for Graphics objects</code></td></tr></table>\n",
    "created_at": "2016-05-08T15:41:45Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297107",
    "user": "https://github.com/vbraun"
}

New commits:

11c75c9Enable saving to in-memory file-like objects
531533cAdd _html_() method for Graphics objects

archive/issue_comments_297108.json:

{
    "body": "Commit: **[`531533c`](https://github.com/sagemath/sagetrac-mirror/commit/531533caaca28d66509c40a094e1e70900709b50)**",
    "created_at": "2016-05-08T15:41:45Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297108",
    "user": "https://github.com/vbraun"
}

Commit: 531533c


archive/issue_comments_297109.json:

{
    "body": "Changed commit from **[`531533c`](https://github.com/sagemath/sagetrac-mirror/commit/531533caaca28d66509c40a094e1e70900709b50)** to **[`3c19131`](https://github.com/sagemath/sagetrac-mirror/commit/3c19131b4088bd01c044449b2ce7a1a79f2a88c4)**",
    "created_at": "2016-05-08T15:43:06Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297109",
    "user": "https://github.com/sagetrac-git"
}

Changed commit from 531533c to 3c19131


archive/issue_comments_297110.json:

{
    "body": "<div id=\"comment:3\"></div>\n\nBranch pushed to git repo; I updated commit sha1. New commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/3c19131b4088bd01c044449b2ce7a1a79f2a88c4\"><code>3c19131</code></a></td><td><code>Fix doctest</code></td></tr></table>\n",
    "created_at": "2016-05-08T15:43:06Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297110",
    "user": "https://github.com/sagetrac-git"
}

Branch pushed to git repo; I updated commit sha1. New commits:

3c19131Fix doctest

archive/issue_comments_297111.json:

{
    "body": "<div id=\"comment:4\"></div>\n\nBranch pushed to git repo; I updated commit sha1. This was a forced push. New commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/8e3170d4c592b5d242ac2cecce996d9a35b7f3a0\"><code>8e3170d</code></a></td><td><code>Fix doctest</code></td></tr></table>\n",
    "created_at": "2016-05-08T16:48:02Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297111",
    "user": "https://github.com/sagetrac-git"
}

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

8e3170dFix doctest

archive/issue_comments_297112.json:

{
    "body": "Changed commit from **[`3c19131`](https://github.com/sagemath/sagetrac-mirror/commit/3c19131b4088bd01c044449b2ce7a1a79f2a88c4)** to **[`8e3170d`](https://github.com/sagemath/sagetrac-mirror/commit/8e3170d4c592b5d242ac2cecce996d9a35b7f3a0)**",
    "created_at": "2016-05-08T16:48:02Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297112",
    "user": "https://github.com/sagetrac-git"
}

Changed commit from 3c19131 to 8e3170d


archive/issue_comments_297113.json:

{
    "body": "<div id=\"comment:5\" align=\"right\">comment:5</div>\n\ndoctests pass now...",
    "created_at": "2016-05-08T16:51:22Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297113",
    "user": "https://github.com/vbraun"
}
comment:5

doctests pass now...


archive/issue_comments_297114.json:

{
    "body": "<div id=\"comment:6\" align=\"right\">comment:6</div>\n\nAttempting to merge to existing branch gives message:\n\n```\nSTDOUT: Auto-merging src/sage/structure/sage_object.pyx\nSTDOUT: CONFLICT (content): Merge conflict in src/sage/structure/sage_object.pyx\nSTDOUT: Automatic merge failed; fix conflicts and then commit the result.\n```\n\nBranch currently red.",
    "created_at": "2016-07-07T02:30:48Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297114",
    "user": "https://github.com/paulmasson"
}
comment:6

Attempting to merge to existing branch gives message:

STDOUT: Auto-merging src/sage/structure/sage_object.pyx
STDOUT: CONFLICT (content): Merge conflict in src/sage/structure/sage_object.pyx
STDOUT: Automatic merge failed; fix conflicts and then commit the result.

Branch currently red.


archive/issue_comments_297115.json:

{
    "body": "<div id=\"comment:7\" align=\"right\">comment:7</div>\n\nMerge conflict with 7.4.beta5",
    "created_at": "2016-09-18T20:39:21Z",
    "formatter": "markdown",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "type": "issue_comment",
    "url": "https://github.com/sagemath/sage/issues/20560#issuecomment-297115",
    "user": "https://github.com/paulmasson"
}
comment:7

Merge conflict with 7.4.beta5


archive/issue_events_287121.json:

{
    "actor": "https://github.com/paulmasson",
    "created_at": "2016-09-18T20:39:21Z",
    "event": "unlabeled",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "label": "https://github.com/sagemath/sage/labels/needs%20review",
    "label_color": "7fff00",
    "label_name": "needs review",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287121"
}

archive/issue_events_287122.json:

{
    "actor": "https://github.com/paulmasson",
    "created_at": "2016-09-18T20:39:21Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "label": "https://github.com/sagemath/sage/labels/needs%20work",
    "label_color": "ffff00",
    "label_name": "needs work",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287122"
}

archive/issue_events_287123.json:

{
    "actor": "https://github.com/mkoeppe",
    "created_at": "2022-12-29T01:35:57Z",
    "event": "demilestoned",
    "issue": "https://github.com/sagemath/sage/issues/20560",
    "milestone_number": null,
    "milestone_title": "sage-7.2",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20560#event-287123"
}