Skip to content
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

Merged
merged 7 commits into from
Mar 11, 2023

Conversation

josephmcasey
Copy link
Contributor

dep/nbconvert

Resolves #121
Resolves #126
Resolves #109

Changelog Details

  • fix(nbconvert2): monkey patch partially functional clean_html
  • test(renders): replaces subprocess to better enable hot-reloading breakpoint debugging
  • dep(nbconvert): upgrade nbconvert 6.5.0 to 7.2.9
  • style(fmt): changes produced by fmt cmd in Taskfile.yml
  • build(poetry.lock): refresh file hashes with poetry v1.4.0
  • build(gitignore): ignore files generated by mkdocs serve

Resources

Comment on lines 251 to 253
return MarkdownWithMath(
renderer=CustomMarkdownRendered(escape=False)
).render(source)
Copy link
Contributor Author

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
Copy link
Contributor Author

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))
Copy link
Contributor Author

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"
Copy link
Contributor Author

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

def custom_clean_html(element):
return element.decode() if isinstance(element, bytes) else str(element)

default_filters["clean_html"] = custom_clean_html
Copy link
Contributor Author

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"
Copy link
Contributor Author

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

@danielfrg
Copy link
Owner

Thank you so much for the PR!
I will merge because it's a poetry issue and I am planning to move to hatch.

@danielfrg danielfrg merged commit 780d345 into danielfrg:main Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants