My name is Harold Castro, and I am a monitor at the Faculty of Communication and Language. I am participating in the Archivo 90 project, where we use Julia to process data and publish it in TiddlyHost.
I have a question about the Julia code: How can we group the individual instructions inside a begin ... end block so that, with a single execution, we can update the wiki, select and reassign the Tiddlers we need, and export them to the hard drive?
There isn’t really a “how” to writing a begin block, it’s fairly straightforward after making sure all called macros were defined beforehand. Could you perhaps elaborate on the exact issue you have and why you thought a begin block is a solution?
Thank you for your response. Let me explain the issue in more detail.
I am working on the Archivo 90 project, where I am using Julia and TiddlyWiki to process and publish information. Currently, I have several instructions that I need to execute separately. For example, I need to update the wiki, retrieve the Tiddlers, select the Tiddlers I need, reassign them to a variable, and finally export them to the hard drive.
My goal is to execute these steps together as a single workflow, rather than running each instruction separately in different cells. I thought that a begin ... end block could be a way to group these instructions and execute them together.
For example, conceptually, I would like to do something like:
julia
begin
update_wiki(...)
tiddlers = ...
selected_tiddlers = ...
export_tiddlers(...)
end
The main question is whether this is the appropriate way to group these operations in a Pluto notebook, or if there is another recommended approach for executing the entire workflow with a single execution.
I would also appreciate an example using the functions from tiddlywiki.jl, since I am still learning how to structure this workflow in Julia.
Grouping things into one begin expression is a Pluto cell technique, but it’s also a common sign that Pluto isn’t the proper tool. Its distinctive reactivity comes with limitations that you wouldn’t need for the simple sequence of instructions you’re describing. Is there another reason you need a Pluto notebook as opposed to a plain .jl script?
If you prefer other people to write programs for your project, consider hiring a professional who 1) has experience in both Julia and TiddlyWiki, and 2) you can trust to handle your information. Sorry to say, volunteers can’t do this for you when you won’t provide the mentioned source code or input data, specify much detail of the program, or compensate people for doing your work. This forum is also typically about small, contained problems, and there is no expectation that the volunteered opinions and advice from programmers of various backgrounds will resolve the problem, let alone provide free production-ready code.