-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dep(nbconvert): major version upgrade #127
Conversation
- include new lock file to record total dependency changes for poetry required as part of major upgrade
…akpoint debugging
mkdocs_jupyter/nbconvert2.py
Outdated
return MarkdownWithMath( | ||
renderer=CustomMarkdownRendered(escape=False) | ||
).render(source) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style(fmt): changes produced by fmt
cmd in Taskfile.yml
@@ -117,7 +117,7 @@ | |||
|
|||
# %% | |||
x = linspace(0, 5, 10) | |||
y = x ** 2 | |||
y = x**2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style(fmt): changes produced by fmt
cmd in Taskfile.yml
config_file = os.path.join(this_dir, f"mkdocs/{filename}") | ||
|
||
try: | ||
build(load_config(config_file)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test(renders): replaces subprocess to better enable hot-reloading breakpoint debugging
pyproject.toml
Outdated
@@ -22,7 +22,7 @@ include = ["mkdocs_jupyter/**/assets/*"] | |||
|
|||
[tool.poetry.dependencies] | |||
python = ">=3.7.1,<4" | |||
nbconvert = "^6.2.0" | |||
nbconvert = "^7.2.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dep(nbconvert): upgrade nbconvert 6.5.0 to 7.2.9
mkdocs_jupyter/nbconvert2.py
Outdated
def custom_clean_html(element): | ||
return element.decode() if isinstance(element, bytes) else str(element) | ||
|
||
default_filters["clean_html"] = custom_clean_html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix(nbconvert2): monkey patch partially functional clean_html
poetry.lock
Outdated
|
||
[[package]] | ||
name = "nbconvert" | ||
version = "6.5.0" | ||
version = "7.2.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build(poetry.lock): refresh file hashes with poetry v1.4.0
Thank you so much for the PR! |
dep/nbconvert
Resolves #121
Resolves #126
Resolves #109
Changelog Details
Resources