Skip to content

Commit c1e02e3

Browse files
committed
Fix nbconvert==5.6.1 to remove template_path warning
1 parent 22816b7 commit c1e02e3

File tree

5 files changed

+19
-65
lines changed

5 files changed

+19
-65
lines changed

poetry.lock

Lines changed: 14 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "jupyter-to-medium"
3-
version = "0.2.7"
3+
version = "0.2.8"
44
description = "Publish a Jupyter Notebook as a Medium blogpost"
55
authors = ["dexplo <petrou.theodore@gmail.com>"]
66
maintainers = ["mjam03 <markjamison03@gmail.com>"]
@@ -25,7 +25,7 @@ Changelog = "https://github.com/dexplo/jupyter_to_medium/releases"
2525
python = ">=3.7,<3.11"
2626
beautifulsoup4 = "^4.10.0"
2727
matplotlib = "^3.5.0"
28-
nbconvert = "^6.3.0"
28+
nbconvert = "5.6.1"
2929
numpy = "^1.21.4"
3030
requests = "^2.26.0"
3131
jupyter-contrib-nbextensions = "^0.5.1"

src/jupyter_to_medium/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
from ._publish_to_medium import publish
2-
3-
__version__ = '0.2.5'
4-
5-
61
def _jupyter_nbextension_paths():
72
return [
83
dict(
@@ -12,4 +7,3 @@ def _jupyter_nbextension_paths():
127
require="jupyter_to_medium/index",
138
)
149
]
15-

src/jupyter_to_medium/_command_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class CustomFormatter(argparse.RawTextHelpFormatter):
159159
default="chrome",
160160
)
161161
parser.add_argument("--gistify", type=bool, default=False)
162-
parser.add_argument("--gist_threshold", type=int, default=5)
162+
parser.add_argument("--gist-threshold", type=int, default=5)
163163

164164

165165
def main():

src/jupyter_to_medium/_publish_to_medium.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,14 +417,14 @@ def publish(
417417
When 'matplotlib', the matplotlib table function will be used to
418418
produce the table.
419419
420-
--gistify: bool, default `False`
420+
gistify: bool, default `False`
421421
Medium has poor formatting for embedded code. To prevent chunks of
422422
code showing unformatted in an article, this option will automatically
423423
create gists for you and embed them in your article. This requires you
424424
to first generate a Personal Access Token (PAT) on github that is then
425425
used, similar to the Medium Integration Token, to create the gists.
426426
427-
--gist_threshold: int, default 5
427+
gist_threshold: int, default 5
428428
If chosen to use gists for code blocks, this sets the length in lines
429429
of code for which to make code blocks into gists. This is to prevent
430430
gists of only several lines unless desired.

0 commit comments

Comments
 (0)