Giter Club home page Giter Club logo

Comments (19)

dhirschfeld avatar dhirschfeld commented on August 11, 2024 1

It looks like the config you're setting is the in the jupyterhub_config.py file and not the jupyter_notebook_config.py.

I'm not sure how you'd set notebook specific config in k8s though. You might get some advice in that regard in the jupyterhub gitter channel.

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

Sorry you are running into troubles. Can you check the Javascript console in your browser to see if there are any errors being output there?

from jupyterlab-github.

wookasz avatar wookasz commented on August 11, 2024

Thanks for the quick response. Right now looks like i'm getting a 403 (rate limited) when fetching form the orgs endpoint.

Also

promise.js:44 Uncaught (in promise) Error: Canceled
    at t.dispose (future.js:155)
    at default.js:384
    at Map.forEach (<anonymous>)
    at e.dispose (default.js:383)
    at e.dispose (default.js:244)
    at index.js:245

But haven't looked into it enough to see if that one is related.

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

Can you print the 403 error here? I'd like to know if it is coming from GitHub directly, or through the notebook server proxy.

That second error should be unrelated, I think.

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

If the server extension is installed, I suspect there is a problem withe your access token, or it is not being loaded into the single-user notebook server as you expected. Can you verify that it is in the user-level jupyter_notebook_config.py?

from jupyterlab-github.

wookasz avatar wookasz commented on August 11, 2024

Thanks, yeah the 403s were unrelated I think. I just refreshed the page now and no 403s anymore, but still no private repos. I will check with jupyterhub gitter channel. Thanks @dhirschfeld for the pointer.

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

@wookasz Did you figure out how to seed the jupyter_notebook_config.py file?

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

Closing as answered. Feel free to comment here if you don't think that is the case.

from jupyterlab-github.

gabrielvrl avatar gabrielvrl commented on August 11, 2024

i running by this error:
c.GitHubConfig.client_id: command not found

dont know how to proceed
can anyone help me?
Cant see private repos too

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

@gabrielvrl You should now be authenticating using the personal access token approach: https://github.com/jupyterlab/jupyterlab-github#getting-an-access-token-recommended

Can you try that and let me know if it fixes your problem?

from jupyterlab-github.

gabrielvrl avatar gabrielvrl commented on August 11, 2024

i did it. I also did pip install jupyterlab_github and jupyter serverextension enable --sys-prefix jupyterlab_github, but cant run c.GitHubConfig.access_token = '< YOUR_ACCESS_TOKEN >', even though im putting my access token, actually it doesnt matter if im putting it or not, because it's not founding the command, as i said.
c.GitHubConfig.client_id: command not found

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

c.GitHubConfig.access_token is not a command, but a config value. Are you trying to run it on the command line?

from jupyterlab-github.

gabrielvrl avatar gabrielvrl commented on August 11, 2024

oh, i was running it on the command line :/

from jupyterlab-github.

gabrielvrl avatar gabrielvrl commented on August 11, 2024

i guess im not understanding what im suppose to do with c.GitHubConfig.access_token

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

You should create a config file as described here: https://jupyter-notebook.readthedocs.io/en/stable/config.html#config-file-and-command-line-options
and then add the access token to it.

from jupyterlab-github.

gabrielvrl avatar gabrielvrl commented on August 11, 2024

thanks, my mistake. but i think maybe the link on the repository is the wrong one?

https://github.com/jupyterlab/jupyterlab-github#getting-an-access-token-recommended -> "You now need to add the credentials you got from GitHub to your notebook configuration file. Instructions for generating a configuration file can be found here. Once you have identified this file, add the following lines to it:", if you click on "here" (before .Once you...) its opening that link: https://jupyter-notebook.readthedocs.io/en/stable/config_overview.html#configure-nbserver , but i think it should open that one that you just send, right?

from jupyterlab-github.

ian-r-rose avatar ian-r-rose commented on August 11, 2024

I suppose both have the necessary information, but the one Iinked here has a bit more detail. PRs welcome to update the link!

from jupyterlab-github.

prashant71ht avatar prashant71ht commented on August 11, 2024

Hello @ian-r-rose , I did all the mentioned steps , but I am not getting Github tab after launching JupyterLab Notebook.

from jupyterlab-github.

davidrs avatar davidrs commented on August 11, 2024

@prashant71ht it works for me if the param is called c.GitHubConfig.github_access_token not c.GitHubConfig.access_token I think it's a typo in the docs (or something changed across versions).

from jupyterlab-github.

Related Issues (20)

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.