-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 error #6
Comments
A new version (0.1.0) has just been pushed to pypi. There are a lot of changes driven by changes in the underlying packages. Can you try this version and see if the problem persists? |
Same issue, dosnt work. |
This is with v0.1.0? Are you in a position to provide (a) any error messages returned and (b) the output from |
I'm also getting a This is the error in the terminal:
|
I just tried the following steps (on a Linux Mint 18 machine):
This gave me an environment that has working behaviour from jupyter-plotly-dash in both jupyter-notebook and jupyter-lab environments. I used as an example this notebook from the master branch. Evaluating a cell containing gives me:
I will try to install Python 3.7 and see if that makes any difference. Can you report what the |
Which makes me think it might be a very basic error, which is that the extension was installed in my venv when I should have installed it globally instead. |
Trying to install it globally still gives an error however, and
To be very explicit, my usual way of using JupyterLab is to run it from a global install, but to select a specific virtual env as a kernel. |
If Are you able to try things self-contained within a single virtualenv? The steps shouldn't be much more than
and then launch jupyterlab and try it. |
Hi there! I have a similar environment with
|
Are you able to share some more information about your environment? |
Well, I cannot reproduce the error anymore, I'm sorry for the noise. These are the steps I used for Linux Mint 19.1 Tessa:
The status of Jupyter server extensions:
|
Hi, I have the same problem,but my OS is windows10. |
@HungYuHeng what does |
@GibbsConsulting |
I just tried the following steps in an empty temporary directory
and the response I get is:
which is essentially the same as @mpbrigham reported above when they had a successful install. @HungYuHeng are you taking these same steps, or their equivalent on windows? If so, you need to check to make sure each step is successful. |
I know where the problem is. |
I get the same error within a conda virtual environment. Are those not supported?
|
@drahnreb as already discussed in this thread, you need to make sure that the Windows equivalent of each step in the installer has been successfully performed. This is probably best done in a separate (conda equivalent of a) |
I was getting the same error running Ubuntu 18 in Windows Subsystem for Linux 2. I changed the |
I just installed It turned out that sudo pip3 install jupyter_server_proxy
jupyter serverextension enable jupyter_server_proxy Output:
I also did: There after: Output:
But nothing helps... Error in Terminal:
Does anybody have an idea how I can solve this problem? |
Can you try installing it in a clean virtualenv? If it then doesn't work, use It is quite possible that trying to use the system python, which is not good practice and certainly not recommended, introduces issues of its own. |
I see. I was indeed using the system Python3. Now after system-uninstalling and reinstalling
Any clue how to proceed? |
I've the same issue. |
So I just tried the following on a Linux Mint 18.3 machine in an empty directory:
At this point, the command
and running Running
Adding in For the additional packages,
with the other packages unchanged. Notably
Now, adding I think to track this issue down, more clarity is needed on (a) the installation steps being followed and (b) what happens after each step, for an unsuccessful installation. It is also important to perform this exercise in a virtualenv to make it easier to understand what is installed and also to prevent anything from the external environment from interfering. |
I installed 0.4.0 version with a success on my Mac Os in the docker container. how ever the 404 error happened when running the sample code in the github. (https://github.com/GibbsConsulting/jupyter-plotly-dash)
seems correct. anyone can give me some clue? |
@tonydeck0506 v0.4.0 had a dependencies issue; are you in a position to try after forcing an upgrade to 0.4.2 or newer? Something like |
@GibbsConsulting I've updated to v.0.4.2 . the same error message is displayed. ("404 not found...")
Set up Jupyter Notebook configENV CONFIG /root/.jupyter/jupyter_notebook_config.py RUN jupyter notebook --generate-config --allow-root && RUN echo "c.NotebookApp.ip = '0.0.0.0'" >>${CONFIG} && RUN echo "c.InteractiveShellApp.exec_lines = ['%matplotlib inline']" >>${CON FIG_IPYTHON} I saw previous message from "mhammo30 commented on Aug 2, 2019" said that c.NotebookApp.ip needs to be set as a fixed ip. but I have to put the ip to 0.0.0.0. does this stuff cause the problem of "404 error"? |
@tonydeck0506 here is the code I added to my jupyter_notebook_config.py that resolved the WSL's IP address at notebook startup. import netifaces as ni
ip = ni.ifaddresses('eth0')[ni.AF_INET][0]['addr']
c.NotebookApp.ip = str(ip) For jupyter in WSL it binds so an IP like '172.17.0.3' which my host windows machine could connect to and have jupyter-plotly-dash not throw the 404 error. You may need to change the Hope this helps. |
@johnwallaceEmr thanks for your feedback. however.
|
assume WSL = windows sub-system for linux |
@tonydeck0506 I spun up a quick docker container serving jupyter and testing the same script that was giving me problems with my original post using this DockerFile. FROM python:3.6.8-slim-stretch
ENV CONFIG /root/.jupyter/jupyter_notebook_config.py
ENV CFG_PY /root/.ipython/profile_default/ipython_config.py
WORKDIR /testcontent
COPY . /testcontent
RUN \
apt-get update \
&& apt-get install -y \
python3-dev curl apt-transport-https build-essential gnupg2 jupyter-notebook \
&& pip3 install wheel \
&& pip3 install jupyter-plotly-dash requests netifaces pandas numpy voluptuous dash plotly \
&& jupyter notebook --generate-config --allow-root \
&& ipython profile create \
&& echo "import netifaces as ni\nip=ni.ifaddresses('eth0')[ni.AF_INET][0]['addr']\nc.NotebookApp.ip=str(ip)" >> ${CONFIG} \
&& echo "c.NotebookApp.port = 8888" >> ${CONFIG} \
&& echo "c.NotebookApp.open_browser = False" >> ${CONFIG} \
&& echo "c.NotebookApp.iopub_data_rate_limit = 1_000_000_000" >> ${CONFIG} \
&& echo "c.NotebookApp.token =''" >> ${CONFIG} \
&& echo "c.MultiKernelManager.default_kernel_name = 'python3'" >> ${CONFIG} \
&& echo "c.InteractiveShellApp.exec_lines = ['%matplotlib inline']" >> ${CFG_PY}
EXPOSE 8888
ENTRYPOINT [ "/bin/sh", "jupyter", "notebook", "--allow-root" ] I used this cmd to start the container (had to retarget the entrypoint as i forgot some pip installs) docker run --rm --name=jupyter_test -it -p "8888:8888" --entrypoint "/bin/sh" testjupyter:latest I was able to connect to jupyter using the docker containers IP '172.17.0.2' and localhost from a host linux vm. the '0.0.0.0' ip is for jupyter to listen to if you want other apps/services inside the container to connect to jupyter without knowing it's bind address. For connections outside the container that target the host system IP and the jupyter port, docker will do the routing into the container without a problem. See if this works for you. |
@mhammo30 thanks for your reply. I tried with the solution. It seems that the "404 error" still displayed when I ran the default sample program... so it might not be the "0.0.0.0" cause the problem. |
I get the same issues. After create the virtual environment, install and enable the jupyter_server_proxy, it still not work for me. Then I realize that I open my jupyter notebook from global python and select the special kernel that i created from the virtual env. I SHOULD open the jupyter notebook from the virtual env, not from the global python (even select the special kernel using the venv wont work). Hope this helps. |
i also tried to install jupyter-plotly_dash in the conda environment and run the code in the jupyter notebook from this env.. |
Hi,
I created several jupyter notebooks using dash through your jupyter-plotly-dash. They were working fine in a Windows 10 computer, however they don't work on a machine running Ubuntu 18.04.1 and jupyter-notebook 5.7.0. I get a 404 error. One of my notebooks can be found here:
https://github.com/FaradayInstitution/intro2dash/blob/master/0_intro_plotly.ipynb
I also tried the example you provided and I get the same issue.
The python versions work just fine.
To me it seems it is a problem with the interface with dash. Here there is the error message I get:
[W 14:27:22.342 NotebookApp] 404 GET /app/endpoints/f72d508283e84f7a9466f07f362e59e2 (127.0.0.1) 14.39ms referer=http://localhost:8986/notebooks/1_dash_install_html.ipynb [W 14:27:22.345 NotebookApp] 404 GET /app/endpoints/49a3c61147314a16ba47c4ecda8055c1 (127.0.0.1) 1.90ms referer=http://localhost:8986/notebooks/1_dash_install_html.ipynb [I 14:27:22.776 NotebookApp] Adapting to protocol v5.1 for kernel b206794b-3f32-48cf-a42a-9bddcd452557 [I 14:27:29.785 NotebookApp] 302 GET /app/endpoints/5fd1af7696cf45469ab252fc4f325aaa/ (127.0.0.1) 0.56ms [W 14:27:29.833 NotebookApp] 404 GET /app/endpoints/5fd1af7696cf45469ab252fc4f325aaa (127.0.0.1) 1.58ms referer=http://localhost:8986/notebooks/1_dash_install_html.ipynb [I 14:27:29.848 NotebookApp] 302 GET /app/endpoints/25fe344586c64319a507390055b10d70/ (127.0.0.1) 0.50ms [W 14:27:29.895 NotebookApp] 404 GET /app/endpoints/25fe344586c64319a507390055b10d70 (127.0.0.1) 1.51ms referer=http://localhost:8986/notebooks/1_dash_install_html.ipynb
I hope you can help with this issue.
Thanks in advance.
The text was updated successfully, but these errors were encountered: