How to use Google Colab on local machine
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
add a comment |
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
add a comment |
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
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
local google-colaboratory
edited Nov 22 '18 at 15:20
Zhang Yushu
asked Nov 22 '18 at 14:54
Zhang YushuZhang Yushu
32
32
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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