Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

Apache Zeppelin 0.6.2 for SQL Server now with correct Syntax Highlighting

$
0
0

After a little bit of work I’ve managed to have syntax highlight for T-SQL in Apache Zeppelin 0.6.2 working correctly.

The tricky part is that the Ace Editor already supports T-SQL specific syntax highlighting from v 1.2.0, but Apache Zeppelin is still using version v 1.1.9.

Moving the v 1.2.0 doesn’t work since it creates some compatibility issues so the only way to go was to manually patch and tweak Apache Zeppelin to use the highlighting file for T-SQL available in version 1.2.0.

Said and done, now T-SQL is beautifully highlighted:


Apache Zeppelin 0.6.2 for SQL Server now with correct Syntax Highlighting

SQL Server 2016 and vNext aren’t supported yet but I’ll work on this in future for sure.

Both the GitHub repository and the Docker Hub are already updated. To update your docker image, if you already have downloaded it before, just do the usual pull:

docker pull yorek/zeppelin-sqlserver:v0.6.2

Remember to export your notebooks to be sure not to loose any work done so far (this behavior will be fixed soon). Then go for

docker stop zeppelin

docker rm zeppelin

docker run -p 8080:8080 --name zeppelin -d yorek/zeppelin-sqlserver:0.6.2


Viewing all articles
Browse latest Browse all 3160

Trending Articles