Closed JoshKarpel closed 3 years ago
Updated based on your recent changes on main
- I think I preserved the logic.
Thanks for rebasing.
When I use your branch, and open an existing notebook with nbterm nb.ipynb
, I can only see nb
in the upper-left corner, instead of nb.ipynb
.
I am playing with embedding
nbterm
in another application (https://github.com/JoshKarpel/spiel/pull/22 if you're interested) and noticed thatNotebook
expects strings for paths, but that all the internal usages can be covered by pathlibPath
s. For my own purposes I just want my tooling to not complain when I pass aPath
instead of astr
(my application uses pathlib internally), but I figured that pathlib has a convenient API for doing some of the things you're doing, especially inmain
, so here's a PR that converts all of the internals to use pathlib.