But code-highlighting is not working on new cells in Jupyter notebook.
When I run CodeMirror.findModeByMIME('text/typescript'); in dev-console of Jupyter notebook window, it returns undefined though CodeMirror.findModeByMIME('text/javascript'); and CodeMirror.findModeByMIME('text/x-go'); return modes.
It looks like TypeScript mode is not available in Jupyter notebook now for some reason.
tslab kernel returns
language_info.name == 'typescript'
now.But code-highlighting is not working on new cells in Jupyter notebook.
When I run
CodeMirror.findModeByMIME('text/typescript');
in dev-console of Jupyter notebook window, it returnsundefined
thoughCodeMirror.findModeByMIME('text/javascript');
andCodeMirror.findModeByMIME('text/x-go');
return modes. It looks like TypeScript mode is not available in Jupyter notebook now for some reason.This bug does not affect
jupyter lab
. Injupyter lab
, ts-only keywords likeinterface
are highlighted properly.