Coder Social home page Coder Social logo

Comments (7)

oschuett avatar oschuett commented on August 24, 2024 1

I just released Appmode 0.3.0 and I decided to include the patch for this issue after all. Hopefully, this minimizes the trouble for everybody else once Jupyter notebook make their release.

from appmode.

oschuett avatar oschuett commented on August 24, 2024

Hi, which version of Jupyter are you using?

from appmode.

epifanio avatar epifanio commented on August 24, 2024
jupyter --version
4.4.0

from appmode.

oschuett avatar oschuett commented on August 24, 2024

So, I think the root cause is this recent commit: jupyter/notebook@198d74a. It added a new argument get_custom_frontend_exporters to the render_template() call is which replicated in Appmode .

What's puzzling me though is that you are already using this code, because it is only in the master branch and not yet in 5.4.x branch. Therefore, it is also not part of the latest release.

I will however have to adopt Appmode soon. So, thanks for the early warning :-)

from appmode.

epifanio avatar epifanio commented on August 24, 2024

yes, true most of my system runs on git:master branch for the main repository. I'll keep an eye on your changes and install appmode from git:master as well. Thanks!

from appmode.

oschuett avatar oschuett commented on August 24, 2024

Before I adopt Appmode, I would like to wait until this change actually gets released by the notebook project. In the meantime I would suggest that you patch server_extension.py yourself. It should look kinda like this (haven't tested it):

 from notebook.notebook.handlers import get_custom_frontend_exporters     # new line
...
 self.write(self.render_template('appmode.html',
            notebook_path=tmp_path,
            notebook_name=tmp_name,
            kill_kernel=False,
            mathjax_url=self.mathjax_url,
            mathjax_config=self.mathjax_config,
            get_custom_frontend_exporters=get_custom_frontend_exporters,  # new line
            )
 )

from appmode.

epifanio avatar epifanio commented on August 24, 2024

Applied the patch, it works great!
on both single user notebook and multiuser jupyterhub.
Thanks!

from appmode.

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.