question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notebook metadata being initialised in wrong place

See original GitHub issue

Bug: Notebook Editor, Interactive Window, Editor cells

First noted in jupyter/jupyter-sphinx#108

Creating a new notebook with:

Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, snippets, and more.
Version: 2020.2.64397
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python 

leads to:

{
 "nbformat": 4,
 "nbformat_minor": 2,
 "metadata": {
  "language_info": {
    "name": "python",
    "codemirror_mode": {
      "name": "ipython",
      "version": 3
   }
  },
  "orig_nbformat": 2,
  "file_extension": ".py",
  "mimetype": "text/x-python",
  "name": "python",
  "npconvert_exporter": "python",
  "pygments_lexer": "ipython3",
  "version": 3
 },
 "cells": []
}

This is incorrect, because all the metadata should actually be under the language_info key:

{
 "nbformat": 4,
 "nbformat_minor": 2,
 "metadata": {
  "language_info": {
    "name": "python",
    "codemirror_mode": {
      "name": "ipython",
      "version": 3,
    },
    "orig_nbformat": 2,
    "file_extension": ".py",
    "mimetype": "text/x-python",
    "name": "python",
    "npconvert_exporter": "python",
    "pygments_lexer": "ipython3",
    "version": 3
  },
 },
 "cells": []
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Mar 13, 2020

In a related matter, it would also be ideal if the notebook JSON was save

Please could you file a separate issue for that.Thanks. & I agree it will help with diffing…

1reaction
DonJayamannecommented, Mar 12, 2020

Thanks for filing this issue. I can confirm this is a bug at our end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Notebook metadata being initialised in wrong place #2176
Bug: Notebook Editor, Interactive Window, Editor cells First noted in jupyter/jupyter-sphinx#108 Creating a new notebook with: Name: Python ...
Read more >
End-To-End Walkthrough - nbdev - Fast.ai
Your notebooks are cleaned of unwanted metadata (which pollute pull requests and git histories and lead to merge conflicts); Your notebook tests all...
Read more >
How do I set up Jupyter/IPython Notebook for Django?
To fix these problems so that we're able to create a Notebook running inside any Django project we have so configured and to...
Read more >
Configure schema inference and evolution in Auto Loader
You can configure Auto Loader to automatically detect the schema of loaded data, allowing you to initialize tables without explicitly declaring ...
Read more >
Automatic Invalidation/Refresh of Metadata | CDP Private Cloud
In this release, you can invalidate or refresh metadata automatically after changes to databases, tables or partitions render metadata stale.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found