Code Monkey home page Code Monkey logo

Comments (6)

yuvipanda avatar yuvipanda commented on August 30, 2024

heya! I'm investigating, should have something soon :)

from docs.

yuvipanda avatar yuvipanda commented on August 30, 2024

Looks like the student had somehow accidentally installed a custom verison of nbconvert in their home directory. It was in .local/lib/python3.8/site-packages/. I moved that so the version of nbconvert is back to what we ship, and it works now!

This is probably caused by running pip install --user <some-package>. While it works in many cases, sometimes it causes an incompatibility and causes hard to debug issues like this. I saw this by accessing their server, creating a terminal (New -> Terminal), and then looking inside .local/lib/python3.8.

It works for me now! Can you try it out and let me know if it works for you too?

from docs.

yuvipanda avatar yuvipanda commented on August 30, 2024

I also saw this error message while looking at the notebook logs:

[W 2021-03-10 21:52:40.771 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 2021-03-10 21:52:40.785 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 2021-03-10 21:52:40.870 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `TocExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 2021-03-10 21:52:40.881 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `TocExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 2021-03-10 21:52:40.899 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `LenvsHTMLExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 2021-03-10 21:52:40.911 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `LenvsHTMLExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 2021-03-10 21:52:40.966 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `LenvsTocHTMLExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 2021-03-10 21:52:40.984 SingleUserNotebookApp configurable:168] Config option `template_path` not recognized by `LenvsTocHTMLExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
[E 2021-03-10 21:52:41.010 SingleUserNotebookApp web:1789] Uncaught exception GET /user/[email protected]/notebooks/ecc-materials-sp2021/materials/x19/lab/1/lab01/lab01.ipynb (10.128.0.19)
    HTTPServerRequest(protocol='https', host='elcamino.cloudbank.2i2c.cloud', method='GET', uri='/user/[email protected]/notebooks/ecc-materials-sp2021/materials/x19/lab/1/lab01/lab01.ipynb', version='HTTP/1.1', remote_ip='10.128.0.19')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute
        result = await result
      File "/opt/conda/lib/python3.8/site-packages/tornado/gen.py", line 775, in run
        yielded = self.gen.send(value)
      File "/opt/conda/lib/python3.8/site-packages/notebook/notebook/handlers.py", line 95, in get
        self.write(self.render_template('notebook.html',
      File "/opt/conda/lib/python3.8/site-packages/notebook/base/handlers.py", line 512, in render_template
        return template.render(**ns)
      File "/opt/conda/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
        self.environment.handle_exception()
      File "/opt/conda/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
        reraise(*rewrite_traceback_stack(source=source))
      File "/opt/conda/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
        raise value.with_traceback(tb)
      File "/opt/conda/lib/python3.8/site-packages/notebook/templates/notebook.html", line 1, in top-level template code
        {% extends "page.html" %}
      File "<template>", line 2, in top-level template code
      File "/opt/conda/lib/python3.8/site-packages/notebook/templates/page.html"
, line 154, in top-level template code
        {% block header %}
      File "/opt/conda/lib/python3.8/site-packages/notebook/templates/notebook.h
tml", line 115, in block "header"
        {% for exporter in get_frontend_exporters() %}
      File "/opt/conda/lib/python3.8/site-packages/notebook/notebook/handlers.py
", line 40, in get_frontend_exporters
        for name in get_export_names():
      File "/home/jovyan/.local/lib/python3.8/site-packages/nbconvert/exporters/
base.py", line 141, in get_export_names
        e = get_exporter(exporter_name)(config=config)
      File "/home/jovyan/.local/lib/python3.8/site-packages/nbconvert/exporters/
base.py", line 102, in get_exporter
        if getattr(exporter(config=config), 'enabled', True):
      File "/opt/conda/lib/python3.8/site-packages/nbinteract/exporters.py", lin
e 125, in __init__
        self.template_path.insert(
    AttributeError: 'InteractExporter' object has no attribute 'template_path'
[E 2021-03-10 21:52:41.013 SingleUserNotebookApp log:166] {

Points to probably an issue with https://www.nbinteract.com/, which I think isn't widely used either.

from docs.

choldgraf avatar choldgraf commented on August 30, 2024

I think that this one is now resolved, so gonna close it! @solomonlr please feel free to ping again or re-open if it still doesn't work.

from docs.

solomonlr avatar solomonlr commented on August 30, 2024

Yes, this looks good, thanks so much!

from docs.

choldgraf avatar choldgraf commented on August 30, 2024

Also opened up #58 to track documenting challenges w/ user installs!

from docs.

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.