A Few Experimental Plugins Useful for Scientific Blogging

96 views
Skip to first unread message

sam paul

unread,
Mar 14, 2025, 8:38:01 PMMar 14
to TiddlyWikiClassic
Hi. Here are a few experimental plugins I made these weeks that are useful for me.

RunScriptPlugin: Run python, c++, R script in tiddlers. https://wangyenshu.github.io/#RunScriptPlugin

SwiftLatexPlugin: Compile latex file in tiddlers using SwiftLatex. You need to download latest swiftlatex release and extract it to the root folder. https://wangyenshu.github.io/#SwiftLatexPlugin

RSSReaderFeedrPlugin: RSS reader, powered by Feedr. https://wangyenshu.github.io/#RSSReaderFeedrPlugin

ModelViewerPlugin: Embed glTF/GLB 3D models in tiddlers. https://wangyenshu.github.io/#ModelViewerPlugin

Yakov

unread,
Mar 19, 2025, 3:45:31 AMMar 19
to TiddlyWikiClassic
Hi Yanshu, congrats, looks very powerful :)

I didn't get how RunScriptPlugin's demos are supposed to work: it doesn't output anything, both for "1+2" input and "print('a')".. Ah, ok, that's actually try only for the first bit of the demo: the second input has an output area, maybe remove the first one? I'd also suggest to increase the font size of the output.

Also ModelViewerPlugin doesn't have a demo (only macro example), so one can't see the result unless they install the plugin locally and try that macro. Could you add one?

I'll probably take a closer look at RSSReaderFeedrPlugin, as I read news via RSS, thanks for sharing.

By the way, do you have any dedicated tiddler that lists your plugins/prototypes? I can only see the tag, but as some of the prototypes become more mature, you'll probably remove that tag, so referencing just the tag doesn't seem like a good option.

суббота, 15 марта 2025 г. в 03:38:01 UTC+3, samp...@gmail.com:

sam paul

unread,
Mar 20, 2025, 11:58:41 PMMar 20
to TiddlyWikiClassic
Hello Yakov. Thanks for your feedback.

The first python demo of RunScriptPlugin use Brython and the text output is in the browser console. I guess this is a Brython feature. But Brython has some advantages.

The RunScriptPlugin accepts "script:" parameter, this is not very usable. I find it hard to implement the parser without conflicts with other parameters or keywords. The RunScriptPlugin also accepts "tid:" param, which is more recommended. You can put the code in a tiddler and use this parameter to import the code into the input box. I have updated the demo: https://wangyenshu.github.io/#RunScriptPlugin .

I have added a demo for ModelViewerPlugin: https://wangyenshu.github.io/#ModelViewerPlugin .

Adding a new tag is reasonable.

Best,

Yanshu

Yakov

unread,
Mar 27, 2025, 4:08:58 AMMar 27
to TiddlyWikiClassic
A very nice demo for https://wangyenshu.github.io/#ModelViewerPlugin ! Do you know if this can be used with a local .stl file (this format is usually used for 3D-printing)?

I've also noticed that your Home tiddler is somewhat difficult to read and the plugins are not that easy-to-find (nothing in the navbar about them, nor about the "blog"). I'm not sure if you want the site to be easily explorable for others, but in case you do, I can give some more specific feedback to help with that.

пятница, 21 марта 2025 г. в 06:58:41 UTC+3, samp...@gmail.com:

sam paul

unread,
Mar 27, 2025, 8:41:58 PMMar 27
to TiddlyWikiClassic
Hello Yakov.

Unfortunately model viewer plugin only support glTF/GLB format. 

Best,
Yanshu

Chris Eichenberg

unread,
May 20, 2025, 11:39:43 AMMay 20
to TiddlyWikiClassic
I was trying the LaTex plugin but I cannot get the button to be clickable. Sure I am missing something but am not sure what, is something else needed outside of what is listed in the plugin? Using latest TWC on my laptop. 
_Screenshot 2025-05-20 112419.jpg

Yakov

unread,
May 21, 2025, 4:25:17 AMMay 21
to TiddlyWikiClassic
Hi kometman,

as far as I can see, the plugin loads 3 .js files from the same folder as the TW (PdfTeXEngine.js, XeTeXEngine.js, DvipdfmxEngine.js) and also one from the web (ace.js), and the loading that you see is probably because there's no PdfTeXEngine.js in your folder. You can download these files from the relative links (like https://wangyenshu.github.io/PdfTeXEngine.js) and check if that helps.

PS Yeah, the best practice is to either pack additional js into the plugin itself, load from CDN (like with ace.js in this case), or load from separate tiddlers (less convenient). For Yanshu: if you have some time to improve this, you can also check implementation in TwFormulaPlugin – it's a bit more complicated since it allows to pick any of the supported libs, but it's also flexible (configurable using CDN vs custom path), so can give you an idea of how to handle this.

Best regards,
Yakov

вторник, 20 мая 2025 г. в 18:39:43 UTC+3, komet...@gmail.com:

Chris Eichenberg

unread,
May 28, 2025, 9:30:18 PMMay 28
to TiddlyWikiClassic
he offers a zip to download that has all the required scripts.

I think it might the *.src references to those scripts, that are sort of scattered in the plugin. The ace.js has an external link but it a has it own plugin; no sure if it is relevant just mentioning it. I am missing something that much is certain. 

sam paul

unread,
May 28, 2025, 10:56:49 PMMay 28
to TiddlyWikiClassic
The SwiftLatexPlugin requires the release file of SwiftLatex in the same directory. The release can be downloaded here https://github.com/SwiftLaTeX/SwiftLaTeX/releases . Sorry, I didn't explain that clearly.

sam paul

unread,
Jul 19, 2025, 4:05:47 PMJul 19
to TiddlyWikiClassic
Update: The site https://wangyenshu.github.io is under construction. I have uploaded all plugins to github and made a demo site: https://wangyenshu.github.io/YS_Extension/. You can also see all the github repo urls in https://wangyenshu.github.io/YS_Extension/.

Best
Reply all
Reply to author
Forward
0 new messages