Comments (6)
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.
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.
-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.
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.
from watermark.
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.
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)
- Supporting nested library imports via `-iv`
- version unknown HOT 4
- --iversions returns an error if no package has been imported HOT 1
- Timezone name has no trailing space HOT 2
- Python 3.8's new metadata package
- support -iv edge cases? HOT 1
- cli version HOT 5
- Python 2.7 and 3.5 EOL HOT 1
- Adopt NEP 29?
- setup.py fails unless all install_requires are already installed HOT 1
- Missing space before timezone HOT 5
- Watermark fails to recognize all project used libraries HOT 1
- `-d` doesn't print date, only when combined with `-u` HOT 1
- Watermark fails to identify (some) packages when imported as 'from X import Y' HOT 13
- Error UsageError on author argument HOT 1
- Is it possible to blur background? HOT 1
- Remove Travis CI config and replace build status badge with AppVeyor? HOT 2
- New feature to check for latest packages
- Include information about how Python was installed HOT 2
- Determine what version of jupyter notebook the code is currently being run in HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watermark.