Coder Social home page Coder Social logo

Change path to Python binary about reticulate HOT 9 CLOSED

rstudio avatar rstudio commented on July 23, 2024 1
Change path to Python binary

from reticulate.

Comments (9)

jannes-m avatar jannes-m commented on July 23, 2024 1

Thanks for the answer! Until the "preview"-option becomes available, I will use a simple work-around.

I hope you don't mind another related question. Is it also possible to close (and then again to restart) the connection to Python? This would be rather useful. So far, I always restart R to achieve this.

from reticulate.

jjallaire avatar jjallaire commented on July 23, 2024

I agree that it would be good to have a "preview" of what the reticulate binding will be. I'll try to add that to the next version. In the meantime you can add the required = TRUE flag to use_python to fail with an error if it can't find the version specified.

from reticulate.

jjallaire avatar jjallaire commented on July 23, 2024

from reticulate.

jjallaire avatar jjallaire commented on July 23, 2024

Just exported the py_discover_config function here: 4118c57

from reticulate.

jannes-m avatar jannes-m commented on July 23, 2024

Thanks for py_discover_config!

from reticulate.

mxposed avatar mxposed commented on July 23, 2024

@jjallaire could you please elaborate on why is it not possible to close established python session? I think it would be a nice feature to be able to re-initialize python with another binary (version or virtualenv) without restarting R session

from reticulate.

jjallaire avatar jjallaire commented on July 23, 2024

from reticulate.

mxposed avatar mxposed commented on July 23, 2024

Thank you for the explanation. Is it theoretically possible to initialize python in a forked process and then kill one if there is a need for reload? But I guess the communication would become a lot more complex

from reticulate.

jjallaire avatar jjallaire commented on July 23, 2024

from reticulate.

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.