


Mimetype ( string) – The mimetype of a file. Last_modified ( string) – Last modified timestamp (required) Will be an array if type is ‘directory’ (required)Ĭreated ( string) – Creation timestamp (required)įormat ( string) – Format of content (one of null, ‘text’, ‘base64’, ‘json’) (required) Last-Modified – Last modified date for fileĬontent ( string) – The content, if requested (otherwise null). Type ( string) – File type (‘file’, ‘directory’)įormat ( string) – How file content should be returned (‘text’, ‘base64’)Ĭontent ( integer) – Return content (0 for no content, 1 for return content)ĥ00 Internal Server Error – Model key error type=text is requested, but the file is binary, then the request shall fail with 400 and have a JSON response containing a ‘reason’ field, with the value ‘bad format’ or ‘bad type’, depending on what was requested. When given, the Contents service shall return a model in the requested type and/or format. If you don't necessarily need live updating HTML then you could set up a script on your credentialed server that will simply use Jupyter's built-in export options to create the static HTML files and then send those to a more publicly accessible server.A client can optionally specify a type and/or format argument via URL parameter.

This will probably require some more advanced configuration than you're going to find in the docs. The installation instructions are more complex than I'm willing to go into here but if your company/team has a shared server that doesn't require password access then you could host the nbviewer on that server and direct it to load from your credentialed server. ipynb files into static HTML, this tool is nbviewer. GitHub and the Jupyter Notebook Veiwer both use the same tool to render. When privacy is more of an issue then there are alternatives but it's certainly more complex there's no built-in way to do this in Jupyter alone, but a couple of options are: Host your own nbviewer The "best" way to share a Jupyter notebook is to simply to place it on GitHub (and view it directly) or some other public link and use the Jupyter Notebook Viewer.
