jupyterlab / extension-examples

JupyterLab Extensions by Examples
BSD 3-Clause "New" or "Revised" License
439 stars 167 forks source link

Error occurs when running jupyterlab-extension-example due to company network security policy #164

Closed KevinRyu closed 3 years ago

KevinRyu commented 3 years ago

Hello,

I’m testing jupyterlab-extension-example within my company’s secure network. The following websites that are blocked from access due to the company’s security policy.

https://registry.npmjs.org/embedme

**

Perhaps unblocking a website is almost impossible.

**

Question

  1. An error occurs during execution as shown below. Is it possible to skip or disable this error part?

  2. Or, after running this example in a non-blocked network environment, can the created extension be installed in jupyterlab in the above-mentioned blocking environment?

Please help.

============= error message ==================== Run this command for Launcher example : python -m pip install -e . … Complete output (41 lines): running develop running jsdeps Installing build dependencies with npm. This may take a while…

jlpm install yarn install v1.21.1 info No lockfile found. [1/4] Resolving packages… error An unexpected error occurred: “https://registry.npmjs.org/embedme”: Request “https://registry.npmjs.org/embedme”\ returned a 403". info If you think this is a bug, please open a bug report with the information provided in …

welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

fcollonval commented 3 years ago

Hey @KevinRyu

Developping for JupyterLab requires to have access to Python and NodeJS packages repositories. If your company is blocking the public repositories, you will need to request either to open access to them or the proxy parameters to access the internet or to get access to some internal mirrors of those repositories.

Then you wil have to set the appropriate settings to use a non-default package repositories:

KevinRyu commented 3 years ago

Hi.

Thanks for your reply. As you mentioned, I already set proxy and can access pip repository and npm. But while in progress setup.py, register.npmjs.org only not allowed. So, I don"t know about the function of this registry site. But, I wonder the registry site access can be skipped If I can download or prepare dependency packages before running setup.py. You said it is not possible, right?

2021년 6월 17일 (목) 오후 4:39, Frédéric Collonval @.***>님이 작성:

Hey @KevinRyu https://github.com/KevinRyu

Developping for JupyterLab requires to have access to Python and NodeJS packages repositories. If your company is blocking the public repositories, you will need to request either to open access to them or the proxy parameters to access the internet or to get access to some internal mirrors of those repositories.

Then you wil have to set the appropriate settings to use a non-default package repositories:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jupyterlab/extension-examples/issues/164#issuecomment-863007617, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG43MBMWSAOJ5NMDTUZJJ4DTTGRCXANCNFSM462USF2A .

fcollonval commented 3 years ago

You probably need to set the proxy for yarn too: https://www.jhipster.tech/configuring-a-corporate-proxy/

JupyterLab is using yarn instead of npm as nodejs package manager.

KevinRyu commented 3 years ago

You probably need to set the proxy for yarn too: https://www.jhipster.tech/configuring-a-corporate-proxy/

JupyterLab is using yarn instead of npm as nodejs package manager.

Thank you very much. I will check my proxy setting again.

fcollonval commented 3 years ago

Coding this one as answered. @KevinRyu don't hesitate to reopen, if you have additional information.