GithubHelp home page GithubHelp logo

Comments (8)

cordmaur avatar cordmaur commented on May 18, 2024 1

I could make it connect to PC HUB with VSCode after enabling the following option in settings:
image

It was refusing the retrieve the kernels list due to certificate expiration...

Hope it helps!

from planetary-computer-hub.

ste-goldstein avatar ste-goldstein commented on May 18, 2024 1

@cordmaur I had that box checked by the time I reported the issue.
But it seems to be working since my last VSCode update, in both Linux and Windows.
Apparently setting proxy support for extensions setting to off can help, according to microsoft/vscode-jupyter#8811

from planetary-computer-hub.

TomAugspurger avatar TomAugspurger commented on May 18, 2024

Thanks for opening this issue. Can you confirm that you start up a notebook server (maybe using the JupyterHub UI) before trying to connect from VS Code?

from planetary-computer-hub.

ste-goldstein avatar ste-goldstein commented on May 18, 2024

Hi Tom. Yeah, the notebook is running on the browser.
I can reproduce the issue in Linux and Windows, and with another Planetary account.
I was able to run a Python kernel in vscode from https://app.sandbox.dea.ga.gov.au
So I think it's unlikely the issue is local.

from planetary-computer-hub.

TomAugspurger avatar TomAugspurger commented on May 18, 2024

Strange. I just checked again and things worked for me. Just to double check, I was using notebooks from https://github.com/microsoft/PlanetaryComputerExamples. Can you maybe clone that repo and see if it works for you?

A couple other things I verifed:

  1. The site's cert isn't expired
  2. I have the exact same version of the jupyter extension as you

from planetary-computer-hub.

ste-goldstein avatar ste-goldstein commented on May 18, 2024

I cloned the repo, and set the remote server (shown in the bottom right corner). In this case the button to run the notebook cell is greyed out. Please let me know if you have any ideas on how to narrow this down.
Screenshot from 2022-01-05 10-04-52

from planetary-computer-hub.

TomAugspurger avatar TomAugspurger commented on May 18, 2024

Hmm, I'm pretty confused right now. I got things working with VSCode Insiders (https://code.visualstudio.com/insiders/) but only on our staging JupyterHub. I couldn't get things working with our production hub using VSCode or VSCode Insiders (and I couldn't get our staging hub to work with VSCode).

Unfortunately I don't really use the Jupyter Notebook extension, so I'm not sure how to get additional debugging output :/

from planetary-computer-hub.

TomAugspurger avatar TomAugspurger commented on May 18, 2024

Ah, thanks for finding that setting. I apparently have it checked, which might explain why things were working for me.

I'm unfortunately not sure why VSCode thinks we have an invalid certificate. The JuyterHub deployment has a certificate (and I thought handled the SSL termination). Perhaps we need to do something extra / different for the jupyter servers...

from planetary-computer-hub.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.