Error with Jupyter Notebook and Google Cloud












2












$begingroup$


so I integrated my google cloud with the Jupyter Notebook and it seemed to be working as follows:



[I 12:13:51.633 NotebookApp] Serving notebooks from local directory: /home/kerenb1



[I 12:13:51.633 NotebookApp] The Jupyter Notebook is running at:



[I 12:13:51.633 NotebookApp] http://localhost:5000/?
token=63dedf4645de55a797dff864c38721f01740048d93557092



[I 12:13:51.633 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).



[C 12:13:51.636 NotebookApp]



To access the notebook, open this file in a browser:
file:///run/user/1001/jupyter/nbserver-3124-open.html
Or copy and paste one of these URLs:
http://localhost:5000/?token=63dedf4645de55a797dff864c38721f01740048d93557092


But when I did that, it told me that I had to activate my CloudShell and do Web Preview with the port that was given, but I wanted it on my Jupyter Notebook port so I did that and it said:



Error: Could not connect to Cloud Shell on port 5000.
Ensure your server is listening on port 5000 and try again.



Anybody know how to solve this issue?










share|improve this question









$endgroup$








  • 1




    $begingroup$
    Hey, Are you using a computing instance from the google cloud platform?
    $endgroup$
    – Tom
    yesterday










  • $begingroup$
    Hey, Yeah. I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs).
    $endgroup$
    – Keren
    yesterday










  • $begingroup$
    Have you made your external IP adress of your instance static? And also under the "VPC network" and "new firewall rule", you can specify what port to listen to.
    $endgroup$
    – Tom
    yesterday
















2












$begingroup$


so I integrated my google cloud with the Jupyter Notebook and it seemed to be working as follows:



[I 12:13:51.633 NotebookApp] Serving notebooks from local directory: /home/kerenb1



[I 12:13:51.633 NotebookApp] The Jupyter Notebook is running at:



[I 12:13:51.633 NotebookApp] http://localhost:5000/?
token=63dedf4645de55a797dff864c38721f01740048d93557092



[I 12:13:51.633 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).



[C 12:13:51.636 NotebookApp]



To access the notebook, open this file in a browser:
file:///run/user/1001/jupyter/nbserver-3124-open.html
Or copy and paste one of these URLs:
http://localhost:5000/?token=63dedf4645de55a797dff864c38721f01740048d93557092


But when I did that, it told me that I had to activate my CloudShell and do Web Preview with the port that was given, but I wanted it on my Jupyter Notebook port so I did that and it said:



Error: Could not connect to Cloud Shell on port 5000.
Ensure your server is listening on port 5000 and try again.



Anybody know how to solve this issue?










share|improve this question









$endgroup$








  • 1




    $begingroup$
    Hey, Are you using a computing instance from the google cloud platform?
    $endgroup$
    – Tom
    yesterday










  • $begingroup$
    Hey, Yeah. I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs).
    $endgroup$
    – Keren
    yesterday










  • $begingroup$
    Have you made your external IP adress of your instance static? And also under the "VPC network" and "new firewall rule", you can specify what port to listen to.
    $endgroup$
    – Tom
    yesterday














2












2








2





$begingroup$


so I integrated my google cloud with the Jupyter Notebook and it seemed to be working as follows:



[I 12:13:51.633 NotebookApp] Serving notebooks from local directory: /home/kerenb1



[I 12:13:51.633 NotebookApp] The Jupyter Notebook is running at:



[I 12:13:51.633 NotebookApp] http://localhost:5000/?
token=63dedf4645de55a797dff864c38721f01740048d93557092



[I 12:13:51.633 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).



[C 12:13:51.636 NotebookApp]



To access the notebook, open this file in a browser:
file:///run/user/1001/jupyter/nbserver-3124-open.html
Or copy and paste one of these URLs:
http://localhost:5000/?token=63dedf4645de55a797dff864c38721f01740048d93557092


But when I did that, it told me that I had to activate my CloudShell and do Web Preview with the port that was given, but I wanted it on my Jupyter Notebook port so I did that and it said:



Error: Could not connect to Cloud Shell on port 5000.
Ensure your server is listening on port 5000 and try again.



Anybody know how to solve this issue?










share|improve this question









$endgroup$




so I integrated my google cloud with the Jupyter Notebook and it seemed to be working as follows:



[I 12:13:51.633 NotebookApp] Serving notebooks from local directory: /home/kerenb1



[I 12:13:51.633 NotebookApp] The Jupyter Notebook is running at:



[I 12:13:51.633 NotebookApp] http://localhost:5000/?
token=63dedf4645de55a797dff864c38721f01740048d93557092



[I 12:13:51.633 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).



[C 12:13:51.636 NotebookApp]



To access the notebook, open this file in a browser:
file:///run/user/1001/jupyter/nbserver-3124-open.html
Or copy and paste one of these URLs:
http://localhost:5000/?token=63dedf4645de55a797dff864c38721f01740048d93557092


But when I did that, it told me that I had to activate my CloudShell and do Web Preview with the port that was given, but I wanted it on my Jupyter Notebook port so I did that and it said:



Error: Could not connect to Cloud Shell on port 5000.
Ensure your server is listening on port 5000 and try again.



Anybody know how to solve this issue?







jupyter google cloud






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









KerenKeren

211




211








  • 1




    $begingroup$
    Hey, Are you using a computing instance from the google cloud platform?
    $endgroup$
    – Tom
    yesterday










  • $begingroup$
    Hey, Yeah. I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs).
    $endgroup$
    – Keren
    yesterday










  • $begingroup$
    Have you made your external IP adress of your instance static? And also under the "VPC network" and "new firewall rule", you can specify what port to listen to.
    $endgroup$
    – Tom
    yesterday














  • 1




    $begingroup$
    Hey, Are you using a computing instance from the google cloud platform?
    $endgroup$
    – Tom
    yesterday










  • $begingroup$
    Hey, Yeah. I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs).
    $endgroup$
    – Keren
    yesterday










  • $begingroup$
    Have you made your external IP adress of your instance static? And also under the "VPC network" and "new firewall rule", you can specify what port to listen to.
    $endgroup$
    – Tom
    yesterday








1




1




$begingroup$
Hey, Are you using a computing instance from the google cloud platform?
$endgroup$
– Tom
yesterday




$begingroup$
Hey, Are you using a computing instance from the google cloud platform?
$endgroup$
– Tom
yesterday












$begingroup$
Hey, Yeah. I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs).
$endgroup$
– Keren
yesterday




$begingroup$
Hey, Yeah. I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs).
$endgroup$
– Keren
yesterday












$begingroup$
Have you made your external IP adress of your instance static? And also under the "VPC network" and "new firewall rule", you can specify what port to listen to.
$endgroup$
– Tom
yesterday




$begingroup$
Have you made your external IP adress of your instance static? And also under the "VPC network" and "new firewall rule", you can specify what port to listen to.
$endgroup$
– Tom
yesterday










0






active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "557"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fdatascience.stackexchange.com%2fquestions%2f45944%2ferror-with-jupyter-notebook-and-google-cloud%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Data Science Stack Exchange!


  • 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.


Use MathJax to format equations. MathJax reference.


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%2fdatascience.stackexchange.com%2fquestions%2f45944%2ferror-with-jupyter-notebook-and-google-cloud%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