Skip to content

Commit

Permalink
Merge pull request #88 from rasbt/module
Browse files Browse the repository at this point in the history
add regular module example
  • Loading branch information
rasbt committed Sep 13, 2022
2 parents 00cce6e + 126ad58 commit 68de766
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,60 @@ An IPython magic extension for printing date and time stamps, version numbers, a

[[top](#sections)]

### Using watermark in Jupyter notebooks and IPython sessions



![](docs/images/ex1.png)

![](docs/images/ex2.png)


**More examples can be found in this [Jupyter notebook](docs/watermark.ipynb).**

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/rasbt/watermark/master?filepath=docs%2Fwatermark.ipynb)

<br>


### Using watermark as a module


```python
from watermark import watermark
print(watermark())
```

```
Last updated: 2022-09-13T16:28:56.177487-05:00
Python implementation: CPython
Python version : 3.9.13
IPython version : 8.4.0
Compiler : Clang 13.0.1
OS : Darwin
Release : 21.6.0
Machine : arm64
Processor : arm
CPU cores : 10
Architecture: 64bit
```

```python
print(watermark(packages="numpy,scipy"))
```

```
numpy: 1.23.2
scipy: 1.9.1
```



See `help(watermark)` for more options.



## Installation and updating

[[top](#sections)]
Expand Down

0 comments on commit 68de766

Please sign in to comment.