sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.22k stars 428 forks source link

"full_output.txt" doesn't update on notebook #13585

Closed 4dcb6662-e430-4fce-a9cb-91b926d258e6 closed 9 years ago

4dcb6662-e430-4fce-a9cb-91b926d258e6 commented 11 years ago

Since the full_output.txt files generated by the notebook are often changed, the client web browser should always ask for a new version instead of retrieving a cached version.

We need to add the right HTTP headers to instruct the browser to always request a new version of full_output.txt from the server.

Component: notebook

Keywords: notebook, full_output, http, cache

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

nbruin commented 11 years ago
comment:1

Are you sure it doesn't update? Are you requesting an explicit reload from your browser? As an example: If I do

for i in range(1000):
    print i

in the notebook and click full_output.txt I get the output as requested (in a new tab).

If I now change the same cell:

 for i in range(1000):
-    print i
+    print i^2

the tab full_output.txt doesn't change when I use firefox. This is because newer versions of Firefox, when asked to open a URL that is already open in some tab or window, will just change to that tab/window; it does not reload the content. Once I explicitly ask to reload that file, I do get the updated output.

The above behaviour is not a bug in Sage. It's an issue with Firefox and it's probably considered a feature. There may be a setting in about:config to influence this behaviour. Probably other browsers have similar behaviour.

If your observations do not agree with what is described above, please describe them.

4dcb6662-e430-4fce-a9cb-91b926d258e6 commented 11 years ago
comment:2

You are write! I'm sorry didn't noticed before.

4dcb6662-e430-4fce-a9cb-91b926d258e6 commented 11 years ago

Upstream: Completely fixed; Fix reported upstream

kcrisman commented 9 years ago
comment:4

According to this discussion, I think this should be closed.

jdemeyer commented 9 years ago

Changed upstream from Completely fixed; Fix reported upstream to none

jdemeyer commented 9 years ago

Description changed:

--- 
+++ 
@@ -1,3 +1,3 @@
-If after running a command with a huge output, one changes the command line and rerun, the output file is not updated.
+Since the `full_output.txt` files generated by the notebook are often changed, the client web browser should always ask for a new version instead of retrieving a cached version.

-I found this behaviour trying to construct a representation of the Clifford Algebra in 6-dimensions, as tensor_product of Clifford Algebras in 2-dimensions.
+We need to add the right HTTP headers to instruct the browser.
jdemeyer commented 9 years ago
comment:6

This issue hasn't been fixed, I'm updating the description.

jdemeyer commented 9 years ago

Description changed:

--- 
+++ 
@@ -1,3 +1,3 @@
 Since the `full_output.txt` files generated by the notebook are often changed, the client web browser should always ask for a new version instead of retrieving a cached version.

-We need to add the right HTTP headers to instruct the browser.
+We need to add the right HTTP headers to instruct the browser to always request a new version of `full_output.txt` from the server.
jdemeyer commented 9 years ago

Changed keywords from notebook, full_output, update to notebook, full_output, http, cache

kcrisman commented 9 years ago
comment:9

Well, then maybe see #14633, since there were three tickets that were opened about this same issue? I'll put your comments there and the relevant upstream ticket.