Skip to content

Commit

Permalink
Merge pull request #3 from exs-cbouy/fix-ipython-deps
Browse files Browse the repository at this point in the history
fix: IPython as an optional dependency
  • Loading branch information
cbouy authored Mar 21, 2024
2 parents 6131b8a + 5829afc commit 00aa80e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [0.1.1] - 2024/03/21

### Changed

- Made `IPython` an optional dependency (in case one only wants to save the HTML file instead of
displaying it in a notebook)

---

## [0.1.0] - 2023/07/21

### Added
Expand Down
2 changes: 1 addition & 1 deletion bokehmol/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
3 changes: 2 additions & 1 deletion bokehmol/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from bokeh.models import Model
from bokeh.plotting import save
from bokeh.resources import Resources
from IPython.display import HTML

from bokehmol.config import settings

Expand Down Expand Up @@ -55,6 +54,8 @@ def show(plot):
and display the content using an `IPython.display.HTML` object. Works on Windows
too...
"""
from IPython.display import HTML

try:
# save plot to tempfile, delete=False for Windows
with NamedTemporaryFile("w", suffix=".html", delete=False) as tf:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bokehmol",
"version": "0.1.0",
"version": "0.1.1",
"description": "Handle molecules with bokeh",
"homepage": "https://github.com/cbouy/bokehmol",
"bugs": {
Expand All @@ -25,7 +25,6 @@
"dist/**/*.map",
"dist/**/*.js",
"dist/**/*.d.ts"

],
"main": "dist/bokehmol.min.js",
"types": "dist/lib/index.d.ts",
Expand Down

0 comments on commit 00aa80e

Please sign in to comment.