Giter Site home page Giter Site logo

Pandas style has no effect about papermill HOT 3 CLOSED

jurij-ch avatar jurij-ch commented on May 24, 2024
Pandas style has no effect

from papermill.

Comments (3)

jurij-ch avatar jurij-ch commented on May 24, 2024

Looks like this is due to a limitation regarding CSS. The CSS styling requires the interactive mode since papermill runs notebook in non-interactive.
Any workarounds?

from papermill.

MSeal avatar MSeal commented on May 24, 2024

There used to be a prompt in JupyterLab to mark the notebook as trusted when it loaded a papermill executed ipynb for exactly that. Try checking if there's a file menu item to "Trust Notebook" and it should appear.

from papermill.

jurij-ch avatar jurij-ch commented on May 24, 2024

@MSeal , thank you, I tried the approach you suggested, but it did not help in my case.

But I found the way how make things working and it was tested in win and linux (via docker) environments. The idea is to use jupyter nbconvert instead of papermill. The convertion I do in two steps (maybe soon will try to rewrite into single one):
jupyter nbconvert --to notebook --execute --output nb_OUT.ipynb nb.ipynb
jupyter nbconvert nb_OUT.ipynb --no-input --to html

Thus, we trigger the notebook running, and when it saved we convert it to HTML. With that all the formatting of DataFrame and markdown output was preserved.

from papermill.

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.