Back to Script-Block,
I have recent memories of very regular python practices like:
- creating an environment (VENV);
- PIP install a library of my choice inside this VENV;
- importing that library into my python code;
- using it in my python code so I don’t have to rewrite it myself!
My python is a bit in the fridge in favor of airtable Script-Block.
Admitting that you can’t use DOM-Manipulation js code, I nevertheless wish to call one or the other available js Code Git by calling it from my own js code which must run in this block.
Please read on to see what I imagine doing like this.
Let’s suppose I would have got the RAW js code from a small library called dspmath.js or dspmath.min.js which would not call any dependencies.
(this case is purely imaginary for the moment.)
Let’s suppose that I didn’t steal this code and that I intend to use it under the conditions allowed by its rightful owner.
Suppose that I plan to copy it within my code, preferably in a minified version so as not to be too cumbersome.
- Where to place it?
- Which syntax to use?
- How to call it, use it if you prefer?
What are the pitfalls already encountered in your Use-Cases, to avoid absolutely when you start in this practice?
Take your time if you have the possibility to help me a little because I am not in a hurry: I took my precautions not to write these questions when I would already be with my nose against the wall.
Thank you very much for taking the time to read me.