{"action":"created","issue":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/2979","repository_url":"https://api.github.com/repos/sagemathinc/cocalc","labels_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/2979/labels{/name}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/2979/comments","events_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/2979/events","html_url":"https://github.com/sagemathinc/cocalc/issues/2979","id":342382869,"node_id":"MDU6SXNzdWUzNDIzODI4Njk=","number":2979,"title":"extraneous output with eqnarray in .sagews and .md","user":{"login":"DrXyzzy","id":528072,"node_id":"MDQ6VXNlcjUyODA3Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/528072?v=4","gravatar_id":"","url":"https://api.github.com/users/DrXyzzy","html_url":"https://github.com/DrXyzzy","followers_url":"https://api.github.com/users/DrXyzzy/followers","following_url":"https://api.github.com/users/DrXyzzy/following{/other_user}","gists_url":"https://api.github.com/users/DrXyzzy/gists{/gist_id}","starred_url":"https://api.github.com/users/DrXyzzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrXyzzy/subscriptions","organizations_url":"https://api.github.com/users/DrXyzzy/orgs","repos_url":"https://api.github.com/users/DrXyzzy/repos","events_url":"https://api.github.com/users/DrXyzzy/events{/privacy}","received_events_url":"https://api.github.com/users/DrXyzzy/received_events","type":"User","site_admin":false},"labels":[{"id":223379260,"node_id":"MDU6TGFiZWwyMjMzNzkyNjA=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/A-LaTeX","name":"A-LaTeX","color":"fbca04","default":false},{"id":189237038,"node_id":"MDU6TGFiZWwxODkyMzcwMzg=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/I-bug","name":"I-bug","color":"cc0000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T15:36:01Z","updated_at":"2018-07-18T15:41:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Reported by Zachary Stone.\r\n\r\n1. Run the following in a .sagews code cell and see normal array output.\r\n\r\n    ```\r\n    %html\r\n\r\n    Test\r\n\r\n    \\begin{eqnarray}\r\n    2\\times2&=& 4\\\\\r\n    2\\times3&=& 6\r\n    \\end{eqnarray}\r\n\r\n    Paragraph 1\r\n\r\n    \\begin{eqnarray}\r\n    1+1&=& 2\\\\\r\n    1+2&=& 3\r\n    \\end{eqnarray}\r\n\r\n    Paragraph 2\r\n    ```\r\n1. Append the following lines to the same cell and run it again.\r\n    ```\r\n    <br>\r\n    <br>\r\n    Paragraph 3\r\n    ```\r\n1. Notice that the text lines, but not the equations, are repeated and out of order in the output.\r\n\r\nNotes:\r\n\r\n1. Incorrect output is cleared by refreshing the browser.\r\n1. Incorrect output disappears if you tab away and come back a few minutes later.\r\n1. Also seen in .md files.\r\n1. Incorrect output persists in other tabs in the same browser window. If you copy the code into your clipboard and paste into another file, which may be .md as well as .sagews, and may even be in another project, you will see the incorrect output on the *first* run of the code, i.e. you won't have to run it twice to see the problem. This does not occur if you paste into a new file in a different browser window, i.e. if you copy the code from a Chrome window and paste into Safari.\r\n1. You might not see the duplication on every attempt, but once it occurs, it is seen on every attempt to execute the code cell. If you don't see it using the steps above, try adding the following a few lines at a time:\r\n    ```\r\n    <br>\r\n    <br>\r\n    Paragraph 4\r\n    <br>\r\n    <br>\r\n    \\begin{eqnarray}\r\n    1+2&=& 3\\\\\r\n    1+3&=& 4\\\\\r\n    \\end{eqnarray}\r\n    <br>\r\n    <br>\r\n    Paragraph 5\r\n    ```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/comments/405976976","html_url":"https://github.com/sagemathinc/cocalc/issues/2979#issuecomment-405976976","issue_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/2979","id":405976976,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTk3Njk3Ng==","user":{"login":"williamstein","id":1276278,"node_id":"MDQ6VXNlcjEyNzYyNzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1276278?v=4","gravatar_id":"","url":"https://api.github.com/users/williamstein","html_url":"https://github.com/williamstein","followers_url":"https://api.github.com/users/williamstein/followers","following_url":"https://api.github.com/users/williamstein/following{/other_user}","gists_url":"https://api.github.com/users/williamstein/gists{/gist_id}","starred_url":"https://api.github.com/users/williamstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamstein/subscriptions","organizations_url":"https://api.github.com/users/williamstein/orgs","repos_url":"https://api.github.com/users/williamstein/repos","events_url":"https://api.github.com/users/williamstein/events{/privacy}","received_events_url":"https://api.github.com/users/williamstein/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T15:41:36Z","updated_at":"2018-07-18T15:41:36Z","author_association":"CONTRIBUTOR","body":"> Also seen in .md files.\r\n\r\nHow?  Doing the steps above does NOT reproduce the problem in a Markdown file.  I would much prefer steps to reproduce the bug there, since it'll be much easier to fix, and will probably fix the sagews bug as a side effect."}}
{"actor":{"display_login":"williamstein"}}