Giter Club home page Giter Club logo

Comments (4)

rasbt avatar rasbt commented on May 24, 2024

Thanks, but this is actually the same that I am already displaying right?

The thing is that I don't want to print too much, but only "selected" info. In my use case, I wouldn't find the commit_hash that useful for example. But people are welcome to fork the magic script and make additions :)

from python_reference.

Carreau avatar Carreau commented on May 24, 2024

You don't show commit hash if it is a dev version of IPython for example, nor encoding which might be problematic on windows and for some benchmark on strings.
I'm just pointing out that it might be easy to get them from IPython.sys_info(). Also using IPython.sys_info() avoid code duplication like your def _get_pyversions(self): ... etc.

There are probably things where we can do a better job so PR welcome if you think we are doing some things wrong :-)

from python_reference.

rasbt avatar rasbt commented on May 24, 2024

I see, but actually there is not much code duplication via _get_pyversions(self). This is just a wrapper for

            platform.python_implementation(),
            platform.python_version(), 
            IPython.__version__

from python_reference.

Carreau avatar Carreau commented on May 24, 2024

Yes, sure I was just pointing out that we had similar logic somewhere if you add some of that at a later point ! Thanks.

from python_reference.

Related Issues (16)

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.