How can I preserve cell outputs on uploaded notebooks?











up vote
0
down vote

favorite












I uploaded a previously created Jupyter notebook. I could initially see all the cell outputs in Colab right after uploading it, but if I close the notebook and come back to it later -- or if I share the notebook with a coworker -- then all the cell outputs have been cleared, which is quite annoying.



This is happening even though I've verified that the following two checkboxes are UNCHECKED:



Edit > Notebook settings > Omit code cell output when saving this notebook



Tools > Preferences > New notebooks use private outputs (omit outputs when saving)



From what I can tell, it looks like the cell outputs get preserved across sessions for notebooks created and edited in Colab, but not for notebooks that were created elsewhere and then uploaded. What am I missing? How can I preserve cell outputs across sessions in uploaded notebooks?










share|improve this question


























    up vote
    0
    down vote

    favorite












    I uploaded a previously created Jupyter notebook. I could initially see all the cell outputs in Colab right after uploading it, but if I close the notebook and come back to it later -- or if I share the notebook with a coworker -- then all the cell outputs have been cleared, which is quite annoying.



    This is happening even though I've verified that the following two checkboxes are UNCHECKED:



    Edit > Notebook settings > Omit code cell output when saving this notebook



    Tools > Preferences > New notebooks use private outputs (omit outputs when saving)



    From what I can tell, it looks like the cell outputs get preserved across sessions for notebooks created and edited in Colab, but not for notebooks that were created elsewhere and then uploaded. What am I missing? How can I preserve cell outputs across sessions in uploaded notebooks?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I uploaded a previously created Jupyter notebook. I could initially see all the cell outputs in Colab right after uploading it, but if I close the notebook and come back to it later -- or if I share the notebook with a coworker -- then all the cell outputs have been cleared, which is quite annoying.



      This is happening even though I've verified that the following two checkboxes are UNCHECKED:



      Edit > Notebook settings > Omit code cell output when saving this notebook



      Tools > Preferences > New notebooks use private outputs (omit outputs when saving)



      From what I can tell, it looks like the cell outputs get preserved across sessions for notebooks created and edited in Colab, but not for notebooks that were created elsewhere and then uploaded. What am I missing? How can I preserve cell outputs across sessions in uploaded notebooks?










      share|improve this question













      I uploaded a previously created Jupyter notebook. I could initially see all the cell outputs in Colab right after uploading it, but if I close the notebook and come back to it later -- or if I share the notebook with a coworker -- then all the cell outputs have been cleared, which is quite annoying.



      This is happening even though I've verified that the following two checkboxes are UNCHECKED:



      Edit > Notebook settings > Omit code cell output when saving this notebook



      Tools > Preferences > New notebooks use private outputs (omit outputs when saving)



      From what I can tell, it looks like the cell outputs get preserved across sessions for notebooks created and edited in Colab, but not for notebooks that were created elsewhere and then uploaded. What am I missing? How can I preserve cell outputs across sessions in uploaded notebooks?







      google-colaboratory






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 at 16:10









      Jake Westfall

      592612




      592612
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Are you trying to open the file from Drive directly in Jupyter?



          If so, you'll need to save the full file using the File -> Download ipynb menu item.



          By default, Colab saves outputs using a different format to support incremental saves, so the Drive file created during auto-save will show outputs, but only in Colab itself, and you'll need to download the full ipynb to export to other notebook viewing tools.






          share|improve this answer





















          • Thanks, but no, I'm just trying to view the notebook in Colab in the browser. I can see the code and everything fine, it's just that the cell outputs go away after the initial session in which I uploaded the notebook.
            – Jake Westfall
            Nov 15 at 16:31










          • Does this reproduce in an incognito window? Extensions are a common cause of issues of this type.
            – Bob Smith
            Nov 15 at 16:32










          • The outputs which are disappearing- are they all outputs for the notebook, or just some outputs? If just some, do they happen to be larger ones? (as in, a graph or image, not just a few lines displayed). When the outputs go missing, are they missing from within Colab as well, or just missing when viewed in Jupyter?
            – blois
            Nov 15 at 21:21










          • Bob, while trying to test your suggestion, I found that I can't seem to reproduce the problem on any new notebook, even trying similar steps on notebooks of similar size, with lots of different variations... so, yeah, I dunno. @blois to answer your question it was every single cell output that disappeared, both in the Colab web viewer and the same after downloading it to a local notebook. But, well, if I can't reproduce the problem, then I guess I don't know where there is to go from here.
            – Jake Westfall
            Nov 16 at 3:52











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323528%2fhow-can-i-preserve-cell-outputs-on-uploaded-notebooks%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Are you trying to open the file from Drive directly in Jupyter?



          If so, you'll need to save the full file using the File -> Download ipynb menu item.



          By default, Colab saves outputs using a different format to support incremental saves, so the Drive file created during auto-save will show outputs, but only in Colab itself, and you'll need to download the full ipynb to export to other notebook viewing tools.






          share|improve this answer





















          • Thanks, but no, I'm just trying to view the notebook in Colab in the browser. I can see the code and everything fine, it's just that the cell outputs go away after the initial session in which I uploaded the notebook.
            – Jake Westfall
            Nov 15 at 16:31










          • Does this reproduce in an incognito window? Extensions are a common cause of issues of this type.
            – Bob Smith
            Nov 15 at 16:32










          • The outputs which are disappearing- are they all outputs for the notebook, or just some outputs? If just some, do they happen to be larger ones? (as in, a graph or image, not just a few lines displayed). When the outputs go missing, are they missing from within Colab as well, or just missing when viewed in Jupyter?
            – blois
            Nov 15 at 21:21










          • Bob, while trying to test your suggestion, I found that I can't seem to reproduce the problem on any new notebook, even trying similar steps on notebooks of similar size, with lots of different variations... so, yeah, I dunno. @blois to answer your question it was every single cell output that disappeared, both in the Colab web viewer and the same after downloading it to a local notebook. But, well, if I can't reproduce the problem, then I guess I don't know where there is to go from here.
            – Jake Westfall
            Nov 16 at 3:52















          up vote
          0
          down vote













          Are you trying to open the file from Drive directly in Jupyter?



          If so, you'll need to save the full file using the File -> Download ipynb menu item.



          By default, Colab saves outputs using a different format to support incremental saves, so the Drive file created during auto-save will show outputs, but only in Colab itself, and you'll need to download the full ipynb to export to other notebook viewing tools.






          share|improve this answer





















          • Thanks, but no, I'm just trying to view the notebook in Colab in the browser. I can see the code and everything fine, it's just that the cell outputs go away after the initial session in which I uploaded the notebook.
            – Jake Westfall
            Nov 15 at 16:31










          • Does this reproduce in an incognito window? Extensions are a common cause of issues of this type.
            – Bob Smith
            Nov 15 at 16:32










          • The outputs which are disappearing- are they all outputs for the notebook, or just some outputs? If just some, do they happen to be larger ones? (as in, a graph or image, not just a few lines displayed). When the outputs go missing, are they missing from within Colab as well, or just missing when viewed in Jupyter?
            – blois
            Nov 15 at 21:21










          • Bob, while trying to test your suggestion, I found that I can't seem to reproduce the problem on any new notebook, even trying similar steps on notebooks of similar size, with lots of different variations... so, yeah, I dunno. @blois to answer your question it was every single cell output that disappeared, both in the Colab web viewer and the same after downloading it to a local notebook. But, well, if I can't reproduce the problem, then I guess I don't know where there is to go from here.
            – Jake Westfall
            Nov 16 at 3:52













          up vote
          0
          down vote










          up vote
          0
          down vote









          Are you trying to open the file from Drive directly in Jupyter?



          If so, you'll need to save the full file using the File -> Download ipynb menu item.



          By default, Colab saves outputs using a different format to support incremental saves, so the Drive file created during auto-save will show outputs, but only in Colab itself, and you'll need to download the full ipynb to export to other notebook viewing tools.






          share|improve this answer












          Are you trying to open the file from Drive directly in Jupyter?



          If so, you'll need to save the full file using the File -> Download ipynb menu item.



          By default, Colab saves outputs using a different format to support incremental saves, so the Drive file created during auto-save will show outputs, but only in Colab itself, and you'll need to download the full ipynb to export to other notebook viewing tools.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 at 16:18









          Bob Smith

          5,7041726




          5,7041726












          • Thanks, but no, I'm just trying to view the notebook in Colab in the browser. I can see the code and everything fine, it's just that the cell outputs go away after the initial session in which I uploaded the notebook.
            – Jake Westfall
            Nov 15 at 16:31










          • Does this reproduce in an incognito window? Extensions are a common cause of issues of this type.
            – Bob Smith
            Nov 15 at 16:32










          • The outputs which are disappearing- are they all outputs for the notebook, or just some outputs? If just some, do they happen to be larger ones? (as in, a graph or image, not just a few lines displayed). When the outputs go missing, are they missing from within Colab as well, or just missing when viewed in Jupyter?
            – blois
            Nov 15 at 21:21










          • Bob, while trying to test your suggestion, I found that I can't seem to reproduce the problem on any new notebook, even trying similar steps on notebooks of similar size, with lots of different variations... so, yeah, I dunno. @blois to answer your question it was every single cell output that disappeared, both in the Colab web viewer and the same after downloading it to a local notebook. But, well, if I can't reproduce the problem, then I guess I don't know where there is to go from here.
            – Jake Westfall
            Nov 16 at 3:52


















          • Thanks, but no, I'm just trying to view the notebook in Colab in the browser. I can see the code and everything fine, it's just that the cell outputs go away after the initial session in which I uploaded the notebook.
            – Jake Westfall
            Nov 15 at 16:31










          • Does this reproduce in an incognito window? Extensions are a common cause of issues of this type.
            – Bob Smith
            Nov 15 at 16:32










          • The outputs which are disappearing- are they all outputs for the notebook, or just some outputs? If just some, do they happen to be larger ones? (as in, a graph or image, not just a few lines displayed). When the outputs go missing, are they missing from within Colab as well, or just missing when viewed in Jupyter?
            – blois
            Nov 15 at 21:21










          • Bob, while trying to test your suggestion, I found that I can't seem to reproduce the problem on any new notebook, even trying similar steps on notebooks of similar size, with lots of different variations... so, yeah, I dunno. @blois to answer your question it was every single cell output that disappeared, both in the Colab web viewer and the same after downloading it to a local notebook. But, well, if I can't reproduce the problem, then I guess I don't know where there is to go from here.
            – Jake Westfall
            Nov 16 at 3:52
















          Thanks, but no, I'm just trying to view the notebook in Colab in the browser. I can see the code and everything fine, it's just that the cell outputs go away after the initial session in which I uploaded the notebook.
          – Jake Westfall
          Nov 15 at 16:31




          Thanks, but no, I'm just trying to view the notebook in Colab in the browser. I can see the code and everything fine, it's just that the cell outputs go away after the initial session in which I uploaded the notebook.
          – Jake Westfall
          Nov 15 at 16:31












          Does this reproduce in an incognito window? Extensions are a common cause of issues of this type.
          – Bob Smith
          Nov 15 at 16:32




          Does this reproduce in an incognito window? Extensions are a common cause of issues of this type.
          – Bob Smith
          Nov 15 at 16:32












          The outputs which are disappearing- are they all outputs for the notebook, or just some outputs? If just some, do they happen to be larger ones? (as in, a graph or image, not just a few lines displayed). When the outputs go missing, are they missing from within Colab as well, or just missing when viewed in Jupyter?
          – blois
          Nov 15 at 21:21




          The outputs which are disappearing- are they all outputs for the notebook, or just some outputs? If just some, do they happen to be larger ones? (as in, a graph or image, not just a few lines displayed). When the outputs go missing, are they missing from within Colab as well, or just missing when viewed in Jupyter?
          – blois
          Nov 15 at 21:21












          Bob, while trying to test your suggestion, I found that I can't seem to reproduce the problem on any new notebook, even trying similar steps on notebooks of similar size, with lots of different variations... so, yeah, I dunno. @blois to answer your question it was every single cell output that disappeared, both in the Colab web viewer and the same after downloading it to a local notebook. But, well, if I can't reproduce the problem, then I guess I don't know where there is to go from here.
          – Jake Westfall
          Nov 16 at 3:52




          Bob, while trying to test your suggestion, I found that I can't seem to reproduce the problem on any new notebook, even trying similar steps on notebooks of similar size, with lots of different variations... so, yeah, I dunno. @blois to answer your question it was every single cell output that disappeared, both in the Colab web viewer and the same after downloading it to a local notebook. But, well, if I can't reproduce the problem, then I guess I don't know where there is to go from here.
          – Jake Westfall
          Nov 16 at 3:52


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323528%2fhow-can-i-preserve-cell-outputs-on-uploaded-notebooks%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents