jupyter / nbviewer

nbconvert as a web service: Render Jupyter Notebooks as static web pages

Home Page:https://nbviewer.jupyter.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remote HTTP 404 with HTML files inside same git repository

RandomWalkie opened this issue · comments

Describe the bug
I am trying to render some html files I have generated with plotly express in nbviewer. You can find some of the code I used below, for example: https://github.com/MartaNabais/udacity_data_scientist_blog_post/blob/main/first_blog_post.ipynb?short_path=35eb862#L5036

If I place the html file in the 'main', I can render it in nbviewer: https://nbviewer.org/github/MartaNabais/udacity_data_scientist_blog_post/blob/main/percent_change_crimes.html

However, if the file is inside a folder, e.g., main/plot1 the rendering in nbviewer fails: https://nbviewer.org/github/MartaNabais/udacity_data_scientist_blog_post/blob/main/plot1/percent_change_crimes.html

with the error Remote HTTP 404: plot1/percent_change_crimes.html not found among 10 files

The stranger thing is, I have another html file in the assets folder and this one seems to render just fine: https://nbviewer.org/github/MartaNabais/udacity_data_scientist_blog_post/blob/main/assets/scottish_crime_ratios_over_time.html

I am a bit puzzled with this bug, as I have several 'plotly' html files I want to render on nbviewer, but am unable to do so. For example, if I try to render the following html file located in main folder: https://github.com/MartaNabais/udacity_data_scientist_blog_post/blob/main/different_crime_types_2022-2023.html

https://nbviewer.org/github/MartaNabais/udacity_data_scientist_blog_post/blob/main/different_crime_types_2022-2023.html
I get an error too: Remote HTTP 404: plot1/percent_change_crimes.html not found among 10 files

Why am I able to render this file: https://nbviewer.org/github/MartaNabais/udacity_data_scientist_blog_post/blob/main/percent_change_crimes.html

but not this one: https://nbviewer.org/github/MartaNabais/udacity_data_scientist_blog_post/blob/main/different_crime_types_2022-2023.html
?

Expected behavior
I expected all html files would be able to be rendered on nbviewer. It seems having multiple html files in the same git repository is causing issues with nbviewer?

Desktop (please complete the following information):

  • OS: iOS
  • Browser: safari
  • Version 17.2.1