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

Changing output ids cause false diffs #115044

Closed
jrieken opened this issue Jan 26, 2021 · 4 comments
Closed

Changing output ids cause false diffs #115044

jrieken opened this issue Jan 26, 2021 · 4 comments
Assignees
Labels
api notebook under-discussion Issue is under discussion for relevance, priority, approach
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Jan 26, 2021

Testing #114969

  • use the plotly.txt-notebook, tracked, not changes
  • delete a cell, save
  • diff editor shows the deleted cells but also red/green for other outputs
  • text-diff of the output shows that it is output ids (this might be an issue with the jupyter extension)

Screenshot 2021-01-26 at 14 43 54

Screenshot 2021-01-26 at 14 45 51

@rebornix rebornix added notebook under-discussion Issue is under discussion for relevance, priority, approach labels Jan 27, 2021
@rebornix
Copy link
Member

The jupyter extension may want to make it transient, which we don't currently support yet. cc @DonJayamanne

@rebornix rebornix added this to the February 2021 milestone Jan 27, 2021
@rebornix rebornix added the api label Jan 27, 2021
@DonJayamanne
Copy link
Contributor

@rebornix Apologies for the delay in looking into this.
The property outputId is something VS Code is in control of. We don't add this & don't even have access to this property.
I think VSCode should not display this in the diff viewer at all, I think its used internally by VS Code (when rendering output).

See here for spec of output (there is no outputId)

	export interface CellDisplayOutput {
		outputKind: CellOutputKind.Rich;
		/**
		 * { mime_type: value }
		 *
		 * Example:
		 * ```json
		 * {
		 *   "outputKind": vscode.CellOutputKind.Rich,
		 *   "data": {
		 *      "text/html": [
		 *          "<h1>Hello</h1>"
		 *       ],
		 *      "text/plain": [
		 *        "<IPython.lib.display.IFrame at 0x11dee3e80>"
		 *      ]
		 *   }
		 * }
		 */
		data: { [key: string]: any; };

		readonly metadata?: NotebookCellOutputMetadata;
	}

@rebornix
Copy link
Member

This issue should be gone now as we move to the new API and only compare outputItems now.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api notebook under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

4 participants
@rebornix @jrieken @DonJayamanne and others