Giter VIP home page Giter VIP logo

obsidian-sage's Introduction

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.

obsidian-sage's People

Contributors

dependabot[bot] avatar exr0n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

obsidian-sage's Issues

error when building

Hi folks, I receive a couple of errors when I build the plugin:

main.ts:7:27 - error TS7016: Could not find a declaration file for module 'urlsafe-base64'. '/Users/rhaynes/Dropbox/Dendron4/vault/.obsidian/plugins/obsidian-sage/node_modules/urlsafe-base64/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/urlsafe-base64 if it exists or add a new declaration (.d.ts) file containing declare module 'urlsafe-base64';

7 import URLSafeBase64 from 'urlsafe-base64';
~~~~~~~~~~~~~~~~

main.ts:207:26 - error TS2552: Cannot find name 'Prompt'. Did you mean 'prompt'?

207 if (err) new Prompt(Failed to create SageMathCell permalink: ${err});
~~~~~~

Unable to display the complete output

This is an awesome plugin.

However, when I was using it, I found that the output box was too small and the menu could not be displayed completely. For example, the "Save as PNG" and "Save as HTML" keys are missing.

image

I am currently using win10 system, obsidian version is 1.0.0, obsidian-sage plugin is using the latest version.

The same problem is found in both live preview mode and reading mode.

Now I choose to view the output image on the web when I need to view details and save the output image. This solves the problem but is somewhat inconvenient.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.