From ccbc8a430f62de470bfffbf4cb7c6b9ea3db8a26 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 30 Mar 2018 09:46:45 -0700 Subject: [PATCH] Make Jupyter notebooks use the fast builtin Python highlighter Summary: Ref T13105. This is silly, but "py" and "python" end up in different places today, and "py" is ~100x faster than "python". See also T3626 for longer-term plans on this. Test Plan: Reloaded a Jupyter notebook, saw it render almost instantly instead of taking a few seconds. Reviewers: mydeveloperday Reviewed By: mydeveloperday Maniphest Tasks: T13105 Differential Revision: https://secure.phabricator.com/D19273 --- .../files/document/PhabricatorJupyterDocumentEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php index 93181921af..90b9d33c0e 100644 --- a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php +++ b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php @@ -196,7 +196,7 @@ final class PhabricatorJupyterDocumentEngine $content = implode('', $content); $content = PhabricatorSyntaxHighlighter::highlightWithLanguage( - 'python', + 'py', $content); $outputs = array();