Synapse Notebook Syntax has been changed

Z.K.Z 221 Reputation points
2024-08-15T09:12:44.1833333+00:00

Hello,

For visibility purposes, I would like to put this question here. The linting syntax for Notebooks in Azure Synapse Analytics has recently changed. Previously, the format used \r\n for new lines, as shown below:

{
	"cell_type": "code",
	"source": [
		"\r\n",
		"\r\n",
		"\r\n",
		"import http\r\n",
		"import logging\r\n",
		"\r\n",
		"\r\n",
		"# Grab API key\r\n",
		"# (ETC - All code is foramtted like this as a list of strings)\r\n",

	],
	"execution_count": 23
}


Now, it seems the format has switched to using only \n for new lines:


{
	"cell_type": "code",
	"source": [
		"\n",
		"\n",
		"\n",
		"import http\n",
		"import logging\n",
		"\n",
		"\n",
		"# Grab API key\n",
		"# (ETC - All code is foramtted like this as a list of strings)\n",

	],
	"execution_count": 23
}

This change is causing issues with the PR review process because it makes everything appear as a change, even when the actual content hasn’t been modified. Is this change in syntax from \r\n to \n an intentional update?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,973 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.