I successfully convert frontmatter metadata to inline :
notes.metadata.move(fr=MetadataType.FRONTMATTER, to=MetadataType.INLINE)
notes.update_content(inline_inplace=False, inline_position="top", inline_tml="standard") #type: ignore
notes.write()
And revert that likewise. However, while I can do the ALL → INLINE, I can't do the ALL → FRONTMATTER. INLINE→FRONTMATTER still works.
notes.metadata.move(fr=MetadataType.ALL, to=MetadataType.FRONTMATTER)
notes.update_content(inline_inplace=False, inline_position="top", inline_tml="standard") #type: ignore
notes.write()
https://selimrbd.github.io/py-obsidianmd/examples/