use code snippet for jupyter text output
*/
import React from 'react'
-import {splitAndTrimEmptyLines} from '../../utils/strings'
const JupyterTextCell = ({text, elementsLibrary}) => {
- const lines = splitAndTrimEmptyLines(text)
-
return (
<div className="jupyter-cell jupyter-text content-block">
- <elementsLibrary.CliOutput lines={lines}/>
+ <elementsLibrary.Snippet snippet={text} lang="csv"/>
</div>
)
}
