1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 16:00:59 +01:00

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:
epriestley 2018-03-30 09:46:45 -07:00
parent 7eaa27683e
commit ccbc8a430f

View file

@ -196,7 +196,7 @@ final class PhabricatorJupyterDocumentEngine
$content = implode('', $content);
$content = PhabricatorSyntaxHighlighter::highlightWithLanguage(
'python',
'py',
$content);
$outputs = array();