Giter VIP home page Giter VIP logo

Comments (15)

kirbs- avatar kirbs- commented on May 29, 2024 1

@pixelindigo thanks, forgot to have the other check this. 404 errors make sense now.

from hide_code.

kirbs- avatar kirbs- commented on May 29, 2024

I think this is a bug. Do you have a notebook directory manually configured?

from hide_code.

ant10484 avatar ant10484 commented on May 29, 2024

No, I haven't configured a directory. I store my notebooks under one directory 'my_notebooks' .

from hide_code.

stef30360 avatar stef30360 commented on May 29, 2024

Hello
Thank for your works , I've same problem.
regards
SR

from hide_code.

kirbs- avatar kirbs- commented on May 29, 2024

@stef30360 please post the console output from jupyter when this error occurs. ty

from hide_code.

stef30360 avatar stef30360 commented on May 29, 2024

Hello,
here are...
[W 21:32:04.642 NotebookApp] 404 GET /notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK.ipynb/KS_Soft.ipynb/export/pdf (::1): No such file or directory: Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK.ipynb/KS_Soft.ipynb/export/pdf
[W 21:32:04.644 NotebookApp] 404 GET /notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK.ipynb/KS_Soft.ipynb/export/pdf (::1) 3.46ms referer=http://localhost:8888/notebooks/Dropbox/Kepler/KeplerSoft/_SOURCE_NOTEBOOK_.ipynb/KS_Soft.ipynb
[I 21:32:04.819 NotebookApp] Starting buffering for 35b09204-a82d-4494-b369-66745db6db15:82ad4582bd21493c8edcb4bda647273d

from hide_code.

stef30360 avatar stef30360 commented on May 29, 2024

hi
I don't understand. When I go back to the file in the source folder, the pdf to latex export works (but without the graphics), however export pdf to html return a 500 error.

from hide_code.

kirbs- avatar kirbs- commented on May 29, 2024

Does the root Jupyter folder contain your Dropbox folder? And if you click on the referrer link from your previous post, does it open the notebook correctly?

from hide_code.

stef30360 avatar stef30360 commented on May 29, 2024

yes , when I click on the referrer link, it works. The root folder Jupyter doesn't contain Dropbox folder.

from hide_code.

kirbs- avatar kirbs- commented on May 29, 2024

@stef30360 just a stab in the dark, but after looking through the output you posted above. Is Jupyter is changing the file path from http://localhost:8888/notebooks/Dropbox/Kepler/KeplerSoft/_SOURCE_NOTEBOOK_.ipynb/KS_Soft.ipynb to http://localhost:8888/notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK.ipynb/KS_Soft.ipynb? Notice the underscores on either side of SOURCE_NOTEBOOK are mising in the later path.

Also, please run the code below and let me know if it's the correct path to the notebook you're using.

import notebook.notebookapp as nb
app = nb.NotebookApp()
print(app.notebook_dir)

from hide_code.

stef30360 avatar stef30360 commented on May 29, 2024

I changed my file path and I run the code:
import notebook.notebookapp as nb
app = nb.NotebookApp()
print(app.notebook_dir)
result: /Users/srmac/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK
it's a correct path,but I have still the error 404 on the three possible exports.

[W 07:35:59.461 NotebookApp] 404 GET /notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb/export/pdf (::1): No such file or directory: Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb/export/pdf
[W 07:35:59.465 NotebookApp] 404 GET /notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb/export/pdf (::1) 5.21ms referer=http://localhost:8888/notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb
[I 07:35:59.695 NotebookApp] Starting buffering for 0760e978-488a-48e3-b38c-1f038c83b770:c9259ad548854e9a8e2e9e078d4515d3

from hide_code.

kirbs- avatar kirbs- commented on May 29, 2024

Not sure why, but the path to export is wrong on your output above.

[W 07:35:59.461 NotebookApp] 404 GET /notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb/export/pdf (::1): No such file or directory: Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb/export/pdf

Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb/export/pdf this part should look like this Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb

Does this link export to pdf?
http://localhost:8888/notebooks/Dropbox/Kepler/KeplerSoft/SOURCE_NOTEBOOK/KS_Soft.ipynb/export/pdf

from hide_code.

stef30360 avatar stef30360 commented on May 29, 2024

Hello,
Sorry the link doesn't work . it doesn't export pdf ! KS_Soft.ipynb is a file not directory !

localhost 8888 notebooks Dropbox Kepler KeplerSoft SOURCE NOTEBOOK Soft ipynb export pdf.
ERR_CONNECTION_REFUSED

from hide_code.

pixelindigo avatar pixelindigo commented on May 29, 2024

Same thing. jupyter:4.4.0, hide_code:0.5.0
Jupyter is started from the same dir as report.ipynb

[W 13:19:26.516 NotebookApp] 404 GET /notebooks/report.ipynb/export/latexpdf (::1): No such file or directory: report.ipynb/export/latexpdf
[W 13:19:26.520 NotebookApp] 404 GET /notebooks/report.ipynb/export/latexpdf (::1) 4.21ms referer=http://localhost:8888/notebooks/report.ipynb

UPD: My bad. Seems that serverextensions were disabled, because I accidentally enabled them from su. Now it works as expected.

from hide_code.

kirbs- avatar kirbs- commented on May 29, 2024

@stef30360 check hide_code is enabled as a server extension. Run jupyter serverextension list.
You should see an output similar to below.

config dir: /Users/kirbs-/.jupyter
    hide_code  enabled 
    - Validating...
      hide_code  OK

from hide_code.

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.