File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def make_url_from_chapter_no_and_script_name(
47
47
(chapter_no = 3,script_name=iris_plot.ipynb) converted to https://github.com/probml/pyprobml/blob/master/notebooks/book1/01/iris_plot.ipynb
48
48
convert_to_which_url = Union["github","colab","gihub-raw"]
49
49
"""
50
- base_url_ipynb = os .path .join (base_url , f"book{ book_no } /{ int ( chapter_no ):02d } " )
50
+ base_url_ipynb = os .path .join (base_url , f"book{ book_no } /{ chapter_no } " )
51
51
if script_name .strip ().endswith (".py" ):
52
52
script_name = script_name [:- 3 ] + ".ipynb"
53
53
github_url = os .path .join (base_url_ipynb , script_name )
@@ -164,7 +164,7 @@ def to_colab_md_url(github_url):
164
164
# df_pyprobml["type"] = "github"
165
165
df_pyprobml ["github_url" ] = df_pyprobml .apply (
166
166
lambda x : make_url_from_chapter_no_and_script_name (
167
- chapter_no = int ( x ["chap_no" ]) ,
167
+ chapter_no = x ["chap_no" ],
168
168
script_name = x ["Notebook" ],
169
169
book_no = int (x ["book_no" ][- 1 ]),
170
170
convert_to_which_url = "github" ,
You can’t perform that action at this time.
0 commit comments