{ } Raw JSON

bundles / nbformat latest / nbformat / validator / _format_as_index

function

nbformat.validator:_format_as_index

source: /nbformat/validator.py:135

Signature

def _format_as_index(indices)

Summary

(from jsonschema._utils.format_as_index, copied to avoid relying on private API)

Extended Summary

Construct a single string containing indexing operations for the indices.

For example, [1, 2, "foo"] -> [1][2]["foo"]

Aliases

  • nbformat.validator._format_as_index