Skip to content

Exr0nProjects/obsidian-sage

Repository files navigation

Obsidian Sage

demo gif

Live-preview ready Sage Math codeblocks for Obsidian. Heavily inspired by the original obsidian-sagecell.

To use, create a code block with the custom sage language marker, then write some valid Sage.

Installing

cd /path/to/vault/.obsidian/plugins, clone this repo, then npm i && npm run build inside. Or, find the plugin on the showcase.

Usage

Create a code block with the custom sage language marker, then write some valid Sage. The interactive output will show up once you close the code block and move your cursor out of it.

Errors may not render properly--if nothing shows up, try copying your SageMath code into the sagecell server directly.

Self Hosting

This plugin uses the public sagecell server run by SageMath, Inc (as described on the sagecell server website). You can also host your own SageCell server, then point the obsidian-sage plugin to use it in the plugin settings.