Obsidian+PR Cookbook - π - YouTube - Official Obsidian Docs
Plugin REPL provides a convenience functions to do a lot of the normal things you would do while editing Obsidian allowing you to automate various tasks. But at some point you might find yourself wanting to do something complicated or something graphical and there might be JavaScript libraries that magically do want you want.
Plugin REPL provides a means of using third-party JavaScript code inside Obsidian - similar to how plugins using the replRequire method but this takes a little work and requires you to know a little bit amount the command line.
How this works
You need to check out a βlibrary installerβ into your vault with git. Then install the libraries you want there. Then Plugin REPL can find them when you run replRequire(βLIBRARYβ) .
To install libraries you first checkout this github repository into your vault directory with:
git clone git@github.com:talwrii/plugin-repl-imports.git
Then you edit the imports.txt file in this directory to add the libraries that you want.
Then you fetch the libraries you want with
cd plugin-repl-imports; npm run run
Then you can import them in Obsidian.
I am not affiliated with Obsidian. I am the author of Plugin REPL