Giter VIP home page Giter VIP logo

Comments (2)

MSeal avatar MSeal commented on May 23, 2024

So you somewhat hit on the right place to look for a solution. Basically papermill is running as a library below any virtual boundaries, so it's a dumb client in the fact that it implies no environment manipulation. It does this because when used as an imported library the intention is to be using the environment the current process has established and not to manipulate that processes intentions. Basically papermill has no knowledge of jupyter server, which might be doing fancier environment management. Becoming aware of higher order organizations makes the client overly complicated and brittle to upstream changes.

I usually recommend explicitly activating the virtualenv you wish to use before calling papermill so there's no confusion. In more complicated scenerios, setting env variables to override defaults (which is exactly how env activation works as well) can work. Some groups also make small wrapper CLIs to do custom setups for this purpose (e.g. {myorgname}-papermill) to add any business logic in a way that's explicit to follow but doesn't require daily users to have to remember.

Hope that helps

from papermill.

Nikolai-Hlubek avatar Nikolai-Hlubek commented on May 23, 2024

Hi Matthew

Thanks for the reply and explainations. I reformulated my original question a bit so it can at least be used as search target if somebody encounters the same issue.

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.