How to use Google Colab on local machine












0















I'm working on deep-learning projects with Google Colaboratory. Because there isn't enough storage space on Google Cloud for my training datasets, I try to use Colab on my local machine.



I followed these tips provided by Google to connect Colab with my computer:
https://research.google.com/colaboratory/local-runtimes.html



but I failed at Step 4. The Colab page raised:




Unable to connect to the runtime.




Meanwhile my Ubuntu terminal raised:




[W 22:41:53.396 NotebookApp]Forbidden



[W 22:41:53.396 NotebookApp] 403 GET /api/kernelspecs (10.133.6.71) 1.45ms referer=None




How can I successfully connect Colab with my pc?










share|improve this question





























    0















    I'm working on deep-learning projects with Google Colaboratory. Because there isn't enough storage space on Google Cloud for my training datasets, I try to use Colab on my local machine.



    I followed these tips provided by Google to connect Colab with my computer:
    https://research.google.com/colaboratory/local-runtimes.html



    but I failed at Step 4. The Colab page raised:




    Unable to connect to the runtime.




    Meanwhile my Ubuntu terminal raised:




    [W 22:41:53.396 NotebookApp]Forbidden



    [W 22:41:53.396 NotebookApp] 403 GET /api/kernelspecs (10.133.6.71) 1.45ms referer=None




    How can I successfully connect Colab with my pc?










    share|improve this question



























      0












      0








      0








      I'm working on deep-learning projects with Google Colaboratory. Because there isn't enough storage space on Google Cloud for my training datasets, I try to use Colab on my local machine.



      I followed these tips provided by Google to connect Colab with my computer:
      https://research.google.com/colaboratory/local-runtimes.html



      but I failed at Step 4. The Colab page raised:




      Unable to connect to the runtime.




      Meanwhile my Ubuntu terminal raised:




      [W 22:41:53.396 NotebookApp]Forbidden



      [W 22:41:53.396 NotebookApp] 403 GET /api/kernelspecs (10.133.6.71) 1.45ms referer=None




      How can I successfully connect Colab with my pc?










      share|improve this question
















      I'm working on deep-learning projects with Google Colaboratory. Because there isn't enough storage space on Google Cloud for my training datasets, I try to use Colab on my local machine.



      I followed these tips provided by Google to connect Colab with my computer:
      https://research.google.com/colaboratory/local-runtimes.html



      but I failed at Step 4. The Colab page raised:




      Unable to connect to the runtime.




      Meanwhile my Ubuntu terminal raised:




      [W 22:41:53.396 NotebookApp]Forbidden



      [W 22:41:53.396 NotebookApp] 403 GET /api/kernelspecs (10.133.6.71) 1.45ms referer=None




      How can I successfully connect Colab with my pc?







      local google-colaboratory






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 '18 at 15:20







      Zhang Yushu

















      asked Nov 22 '18 at 14:54









      Zhang YushuZhang Yushu

      32




      32
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Your invocation of jupyter needs particular arguments to authorize Colab to speak to it. Did you start jupyter with the args indicated?



          jupyter notebook 
          --NotebookApp.allow_origin='https://colab.research.google.com'
          --port=8888
          --NotebookApp.port_retries=0


          Given that a 403 is a permissions error, I suspect you might be missing the NotebookApp.allow_origin option.






          share|improve this answer
























          • That's exactly the problem! These command lines failed to pass args to my jupyter, so I config these args by editing the jupyter_notebook_config.py file. It finally works. Many thanks to you :-D

            – Zhang Yushu
            Nov 23 '18 at 1:48













          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',
          autoActivateHeartbeat: false,
          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%2f53433567%2fhow-to-use-google-colab-on-local-machine%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









          0














          Your invocation of jupyter needs particular arguments to authorize Colab to speak to it. Did you start jupyter with the args indicated?



          jupyter notebook 
          --NotebookApp.allow_origin='https://colab.research.google.com'
          --port=8888
          --NotebookApp.port_retries=0


          Given that a 403 is a permissions error, I suspect you might be missing the NotebookApp.allow_origin option.






          share|improve this answer
























          • That's exactly the problem! These command lines failed to pass args to my jupyter, so I config these args by editing the jupyter_notebook_config.py file. It finally works. Many thanks to you :-D

            – Zhang Yushu
            Nov 23 '18 at 1:48


















          0














          Your invocation of jupyter needs particular arguments to authorize Colab to speak to it. Did you start jupyter with the args indicated?



          jupyter notebook 
          --NotebookApp.allow_origin='https://colab.research.google.com'
          --port=8888
          --NotebookApp.port_retries=0


          Given that a 403 is a permissions error, I suspect you might be missing the NotebookApp.allow_origin option.






          share|improve this answer
























          • That's exactly the problem! These command lines failed to pass args to my jupyter, so I config these args by editing the jupyter_notebook_config.py file. It finally works. Many thanks to you :-D

            – Zhang Yushu
            Nov 23 '18 at 1:48
















          0












          0








          0







          Your invocation of jupyter needs particular arguments to authorize Colab to speak to it. Did you start jupyter with the args indicated?



          jupyter notebook 
          --NotebookApp.allow_origin='https://colab.research.google.com'
          --port=8888
          --NotebookApp.port_retries=0


          Given that a 403 is a permissions error, I suspect you might be missing the NotebookApp.allow_origin option.






          share|improve this answer













          Your invocation of jupyter needs particular arguments to authorize Colab to speak to it. Did you start jupyter with the args indicated?



          jupyter notebook 
          --NotebookApp.allow_origin='https://colab.research.google.com'
          --port=8888
          --NotebookApp.port_retries=0


          Given that a 403 is a permissions error, I suspect you might be missing the NotebookApp.allow_origin option.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 '18 at 17:36









          Bob SmithBob Smith

          6,85712129




          6,85712129













          • That's exactly the problem! These command lines failed to pass args to my jupyter, so I config these args by editing the jupyter_notebook_config.py file. It finally works. Many thanks to you :-D

            – Zhang Yushu
            Nov 23 '18 at 1:48





















          • That's exactly the problem! These command lines failed to pass args to my jupyter, so I config these args by editing the jupyter_notebook_config.py file. It finally works. Many thanks to you :-D

            – Zhang Yushu
            Nov 23 '18 at 1:48



















          That's exactly the problem! These command lines failed to pass args to my jupyter, so I config these args by editing the jupyter_notebook_config.py file. It finally works. Many thanks to you :-D

          – Zhang Yushu
          Nov 23 '18 at 1:48







          That's exactly the problem! These command lines failed to pass args to my jupyter, so I config these args by editing the jupyter_notebook_config.py file. It finally works. Many thanks to you :-D

          – Zhang Yushu
          Nov 23 '18 at 1:48




















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433567%2fhow-to-use-google-colab-on-local-machine%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

          Tonle Sap (See)

          I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

          Guatemaltekische Davis-Cup-Mannschaft