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
This commit is contained in:
parent
7eaa27683e
commit
ccbc8a430f
|
@ -196,7 +196,7 @@ final class PhabricatorJupyterDocumentEngine
|
||||||
$content = implode('', $content);
|
$content = implode('', $content);
|
||||||
|
|
||||||
$content = PhabricatorSyntaxHighlighter::highlightWithLanguage(
|
$content = PhabricatorSyntaxHighlighter::highlightWithLanguage(
|
||||||
'python',
|
'py',
|
||||||
$content);
|
$content);
|
||||||
|
|
||||||
$outputs = array();
|
$outputs = array();
|
||||||
|
|
Loading…
Reference in a new issue