Thanks a lot Jeremy! I guess what you mean is that when nbdev tries to export to other modules, it failed because at the moment the module itself is not ready. So, sorting the filenames to ensure all the modules are generated before the action of exporting to other module is executed, could be the solution.
So, to verify this hypothesis I have checked the order of filenames when nbdev_preview, and the order of the filenames supports the hypothesis above. The notebook I am doing export to other modules is after core.py and utils.py but before all other modules are made.
Then my question is how do I sort the filenames, I have tried to removed the numbers in the filenames, so far there is no luck.
Now, it exported to the modules I wanted. I guess the order has been changed, though I canāt see it because sometimes nbdev_preview does not show me the order of all the filenames.
How to view the website generated by nbdev in a localhost on paperspace?
I have managed to use nbdev with my project on paperspace, and nbdev_preview works fine too, until it gives me the localhost link. I donāt know where to paste the link to view the generated website. Well, I didnāt try to paste it to the end of the url of paperspace, and it didnāt work of course.
At the moment, we do not support port forwarding on Gradient machines. However, you can control forwarded ports on a Paperspace Core machine. You can run this notebook there and then access the site on your local browser if you forward port 4151.
The data type of a function argument shows the entire module path in the documentation generated by nbdev, and it looks strange, like the screenshot below:
Another question related to the documentation: It seems that nbdev inherits the base class documentation even when I explicitly add a docstring to my class. Example:
#|export
class LinearHyperModel(kt.HyperModel):
def __init__(
self,
number_documents_per_query,
number_features,
top_n=10,
learning_rate_range=None,
):
"""
Define a KerasTuner search space for linear models
"""
# code here
leads to
where the text comes from the kt.HyperModel base class. Is this the expected behavior?
Would you want it to only refer to the object e.g. Normalization? I suspect some users would prefer the full path. Perhaps it would need to be configurable?
Iāve been thinking that a different table UI might be better in general, and would also solve this issue specifically. For example, something like spacyās docs where the type is on a separate row instead of being in its own column:
Since your question is little general, the best I can offer right now is what I wrote down in my note after getting nbdev and paperspace to work
how to use paperspace with nbdev
make sure to specify all the libraries (including the latest version number) needed for my project in settings.init, as paperspace may only install the default version not necessarily the latest needed
then pip install -e . will install all of them
nbdev is only usable in paperspace if it is installed in this way
hi @Daniel I find that I must re-save the .ssh file into the ~/ folder everytime I re-open a session in paperspace. Do you know of any alternatives to this? I have listed my steps for each new Paperspace session here in case it is useful to anyone.