Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloaded JSON is missing indentation #272

Open
abitrolly opened this issue Aug 13, 2021 · 1 comment
Open

Downloaded JSON is missing indentation #272

abitrolly opened this issue Aug 13, 2021 · 1 comment

Comments

@abitrolly
Copy link

Hitting "Download" button in Binder interface produces single line JSON. Which makes it hard to compare and review changes in notebook.

{"metadata":{"language_info":{"name":"python","version":"3.7.8","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"}},"nbformat_minor":5,"nbformat":4,"cells":[{"cell_type":"code","source":"anything","metadata":{"trusted":true},"execution_count":1,"outputs":[{"traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mNameError\u001b[0m                                 Traceback (most recent call last)","\u001b[0;32m<ipython-input-1-86b18486b5d0>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0manything\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m","\u001b[0;31mNameError\u001b[0m: name 'anything' is not defined"],"ename":"NameError","evalue":"name 'anything' is not defined","output_type":"error"}],"id":"3ea0d3e1-bb23-4c4b-a6eb-fafd97986634"}]}

To repeat.

  1. Go https://jupyter.org/try
  2. Click "Try JupyterLab"
  3. Select Python and type anything
  4. Click "Download"

Sent here from jupyterlab/jupyterlab#10437 (comment)

@manics
Copy link
Owner

manics commented Oct 7, 2021

Can perhaps copy jupyterlite/jupyterlite#375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants