jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.74k stars 4.98k forks source link

Cannot export to html. getting missing style.min.css error #5843

Open hilldog1378 opened 4 years ago

hilldog1378 commented 4 years ago

while trying to export a notebook to html, I get the following errror with nbconvert: [E 10:40:53.347 LabApp] nbconvert failed: [Errno 2] No such file or directory: 'C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\resources\style.min.css' Traceback (most recent call last): File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\nbconvert\handlers.py", line 132, in get resources=resource_dict File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\exporters\html.py", line 95, in from_notebook_node }) File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\exporters\templateexporter.py", line 307, in from_notebook_node def _raw_mimetypes_default(self): File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\exporters\exporter.py", line 139, in from_notebook_node if 'language' in nb['metadata']: File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\exporters\exporter.py", line 316, in _preprocess

to each preprocessor

  File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\preprocessors\base.py", line 47, in __call__
    return self.preprocess(nb, resources)
  File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\preprocessors\csshtmlheader.py", line 55, in preprocess
    preprocessors to pass variables into the Jinja engine.
  File "C:\Users\a714683\AppData\Local\Continuum\anaconda3\lib\site-packages\nbconvert\preprocessors\csshtmlheader.py", line 73, in _generate_header
    # Load the user's custom CSS and IPython's default custom CSS.  If they
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\a714683\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\nbconvert\\resources\\style.min.css'
kevin-bates commented 4 years ago

Looks like you're missing a core file within the nbconvert package. Please try to update or uninstall/install nbconvert such that the missing file is restored. Should the problem persist, get the version of nbconvert you're using, along with other pertinent information (tracebacks are always welcome), and open an issue in the nbconvert repo. Thank you.