Giter Site home page Giter Site logo

Comments (6)

rasbt avatar rasbt commented on July 23, 2024 1

No worries, thanks for the update, and I am glad that it works now! (btw. I added a new issue to fix the ugly alignment of the version numbers)

from watermark.

rasbt avatar rasbt commented on July 23, 2024

Thanks for the note! Yes, this can (and should) be modified, indeed, to support packages that don't use the standard version attribute. For instance, the -p flag also considers .version and .version_info, which I encountered in a few packages. The same could be done for --iversion and -p should also be modified to support ._version

I am a bit busy this week but I am happy to put that onto my todo list. In the meantime, I'd happy to accept any PRs if someone likes to fix it before I get a chance :)

from watermark.

tobsecret avatar tobsecret commented on July 23, 2024

-p dask does work
It's just more convenient to type

%load_ext watermark
watermark -d -iv 

at the top of each notebook

from watermark.

rasbt avatar rasbt commented on July 23, 2024

Oh, actually it does work with dask in my case ;). After I saw your second comment, I was thinking that you may have run --iversions before you imported dask? The --iversions flag currently only considers those packages that were imported during the session.

So, in order to use it properly, one needs to run it either at the end of a notebook or rerun it after the other cells in the notebook got executed.

screen shot 2017-08-28 at 2 55 32 pm

from watermark.

tobsecret avatar tobsecret commented on July 23, 2024

No, that is not the case in my notebook.
The first cell is imports, the second cell loads and calls the watermark extension.
I have dask 0.15.0 though but it seems like they also have ._version in dask 0.15.1.
And the following works:

%watermark -iv -v -w -p dask

and prints out:

seaborn     0.8.0
pandas      0.20.1
numpy       1.11.1
CPython 3.5.2
IPython 5.1.0

dask 0.15.0
watermark 1.5.0

If I leave out the -p flag:

%watermark -iv -v -w 

the following is printed however

seaborn     0.8.0
pandas      0.20.1
numpy       1.11.1
CPython 3.5.2
IPython 5.1.0
watermark 1.5.0

from watermark.

tobsecret avatar tobsecret commented on July 23, 2024

Sorry for wasting your time, found the issue.
I was importing from dask

from dask.distributed import Client, progress

but not importing all of dask itself.

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.