Giter Site home page Giter Site logo

Comments (5)

rasbt avatar rasbt commented on July 23, 2024 1

That functionality should work in the the new 1.8.0 version now :)

from watermark.

rasbt avatar rasbt commented on July 23, 2024

Hi there,

could you show your usage example? I am wondering because there is currently no feature to print all the imported packages automatically (we may add that at some point though, as mentioned in #5)

So in order to show the package version, you would execute

%watermark -p Bio

from watermark.

matrs avatar matrs commented on July 23, 2024

Sorry, I wasn't clear enough.
I'm using %watermark -iv to print the version of all imported modules.
So when I use

from Bio import SeqIO

%watermark -iv doesn't print any information about the module Bio, as if It wasn't imported. Of course, it works if I use

import Bio

I was expecting that %watermark -iv printed information about Bio despite the way I imported it because the Bio module it's actually being imported in both cases. So this is a particular example of the general case where any submodule/class/function is imported using

from X import Y

and %watermark -iv doesn't print any information for X (or Y if you prefer that).

could you show your usage example? I am wondering because there is currently no feature to print all the imported packages automatically

But in the help says:
-iv, --iversions prints the name/version of all imported modules

from watermark.

rasbt avatar rasbt commented on July 23, 2024

Oh sorry, I was confused and forgot that we already added the -iv flag ... for some reason, I thought this was still work in progress.

I agree with you that it would be super nice to support the from X import Y scenarios. And I think this is an easy fix. I think I can just implement it right-away in a few minutes

from watermark.

matrs avatar matrs commented on July 23, 2024

Thank you , that was fast!

from watermark.

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.