Skip to content

Commit

Permalink
Fix classic notebook extension installation (#110)
Browse files Browse the repository at this point in the history
* fix classic notebook js extension path

nbextension/static -> nbextension/

* update release notes

* clean-up
  • Loading branch information
benbovy authored Apr 28, 2023
1 parent 8214d14 commit 6a9e2c9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ $RECYCLE.BIN/
# ----

**/node_modules/
ipytone/nbextension/static/index.*
ipytone/nbextension/index.*
ipytone/labextension/*.tgz
.yarn/

Expand Down
9 changes: 9 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
Release Notes
=============

v0.5.1
------

Bug fixes
~~~~~~~~~

- Fixed installation issue with notebook "classic" version <7 (:issue:`109`,
:pull:`110`).

v0.5.0
------

Expand Down
15 changes: 0 additions & 15 deletions ipytone/nbextension/__init__.py

This file was deleted.

File renamed without changes.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Homepage = "https://github.com/benbovy/ipytone"

[tool.hatch.build]
artifacts = [
"ipytone/nbextension/static/index.*",
"ipytone/nbextension/index.*",
"ipytone/labextension/*.tgz",
"ipytone/labextension",
]
Expand All @@ -79,11 +79,11 @@ exclude = [
[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"ipytone/nbextension/static/index.js",
"ipytone/nbextension/index.js",
"ipytone/labextension/package.json",
]
skip-if-exists = [
"ipytone/nbextension/static/index.js",
"ipytone/nbextension/index.js",
"ipytone/labextension/package.json",
]
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = [
entry: './src/extension.ts',
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'ipytone', 'nbextension', 'static'),
path: path.resolve(__dirname, 'ipytone', 'nbextension'),
libraryTarget: 'amd',
},
module: {
Expand Down

0 comments on commit 6a9e2c9

Please sign in to comment.