i am trying to run python script on jupyter using docker compose but can't connect to python kernel and this is my docker compose file which running on ubuntu vm :
services:
jupyter:
container_name: jupyter
image: jupyter/scipy-notebook
ports:
- 8888:8888
volumes:
- ./jupyter:/home/jovyan/work
environment:
- JUPYTER_TOKEN=password
command: jupyter notebook --ServerApp.iopub_data_rate_limit=10000000 && ["jupyter", "lab", "--debug"]
networks:
testing_net:
ipv4_address: 172.18.0.3
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.18.0.2/16`
and this is my nginx configuration
` location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass
http://localhost:8888;
/>
proxy_redirect off;
}```
when i'm trying to run any python code on jupyter can't connect to kernel an it gives me this error in the docker logs
```[W 2023-10-22 06:55:09.321 ServerApp] Replacing stale connection: ab4cb6a6-12c1-4d60-9730-ec05070a5f5f:56fc3464-cb08-4d4c-8d8b-7962be661691
[W 2023-10-22 06:55:09.322 ServerApp] 400 GET /api/kernels/ab4cb6a6-12c1-4d60-9730-ec05070a5f5f/channels?session_id=56fc3464-cb08-4d4c-8d8b-7962be661691 (1fd5f82f97c944089c5f3113e6ec60a5@172.18.0.1) 1.78ms referer=None```
Can't run jupyter using docker compose with nginx
Programing Coderfunda
October 22, 2023
No comments
Related Posts:
pnr status … Read More
Google translator scripts secrate - 404 | ![CDATA[ ]] … Read More
Index of HTMLWhat is HTMLHTML Text EditorsHTML Building BlocksHTML tagsHTML AttributesHTML ElementsHTML FormattingHTML HeadingHTML ParagraphHTML Phrase TagsHTML An… Read More
What is HTML What is HTMLHTML is an acronym which stands for Hyper Text Markup Language which is used for creating web pages and web applications. Let's see … Read More
Google Translator function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element'); } … Read More
0 comments:
Post a Comment
Thanks