Apache Zeppelin - change default syntax highlighting

I use Zeppelin (version 0.6.0.) Along with Spark (version 1.6.1.) And Hadoop (2.6).

Zeppelin gives users the ability to use multiple interpreters, but I decided to use Python exclusively.

I managed to set the default interpreter to org.apache.zeppelin.spark.PySparkInterpreter . By creating the zeppelin-site.xml file from the template; and put PySparkInterpreter in front of org.apache.zeppelin.spark.SparkInterpreter inside the zeppelin.interpreters property tag.

So far, everything is working correctly. I do not need to insert% pyspark at the top of each cell to write Python code.

Problem: Syntax highlighting of the code used for Scala.

To highlight Python syntax, I have to do:

  • Empty cell content (copy it)
  • Paste only% pyspark and press SHIFT + ENTER
  • Wait for the error and paste the code back into the cell.

Question: Where can I change the default syntax highlighting for a Zeppelin laptop and configure it to use Python one?

Yours faithfully!

+4
source share
1 answer

Most likely, it will be possible immediately https://issues.apache.org/jira/browse/ZEPPELIN-139 is allowed.

+1
source

Source: https://habr.com/ru/post/1651076/


All Articles