Closed danizen closed 5 years ago
Now that I am more up-to-speed on the existing issues #3 and #4, I think it is more natural to have a wrapper script that calls nbconflux.api.notebook_to_page
appropriately for my environment.
The search strategies would not be simple at all - what should the parent page be? In my corporate environment I may be able to specify the parent page for all my notebooks, but what about in some other environment.
I have an idea to find the id of the page by space (key or title) and by page title. For a new page, the parent title could be given.
This would add a dependence (if I were to implement it) on jmespath. A search would have the following inputs:
A method for an exact search:
This could be generalized to support multiple "strategies", each a function taking the session, baseurl, and kwargs. This makes the search function more maintainable: