{ } Raw JSON

bundles / nbformat 5.11.1 / nbformat / v2 / rwbase / split_lines

function

nbformat.v2.rwbase:split_lines

source: /nbformat/v2/rwbase.py:76

Signature

def split_lines(nb)

Summary

split likely multiline text into lists of strings

Extended Summary

For file output more friendly to line-based VCS. rejoin_lines(nb) will reverse the effects of split_lines(nb).

Used when writing JSON files.

Aliases

  • nbformat.v2.nbjson.split_lines