I need to download .ipynb-file in a terminal and than run it (using nbconvert or something like that).
I tried use
wgetandcurlfor this, but I got web page (with tags and Javascript code) instead of runnable Notebook.Then I used Jupyter REST API. To get a notebook's content I used
/api/contents/<path>/<file>I.e. I simply changednotebookstoapi/contentsin URL. I got a content of the notebook with some additional text (I'll have to filter it later), and... in a form of one line. So, I have a lot of work to convert this one line into a working notebook.
Is it possible to download Jupyter notebook via terminal and to get working .ipynb-file (the same as file can be downloaded by download as .ipynb in Jupyter Web UI).