### Install the package Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Install the TriboSim package using setup.py. ```bash python setup.py install ``` -------------------------------- ### Makefile setup and run Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Alternative streamlined setup using the provided Makefile. ```bash make install ``` ```bash make run ``` -------------------------------- ### Install dependencies Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Install the required Python packages from requirements.txt. ```bash pip install -r requirements.txt ``` -------------------------------- ### Install MathJax via npm for self-hosting Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Install the mathjax package and move the es5 directory to your server location. ```bash npm install mathjax@3 mv node_modules/mathjax/es5 /mathjax ``` -------------------------------- ### Install kaleido==0.2.1 Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Install a specific version of kaleido to avoid requiring a Chrome browser. This is needed if you don't have kaleido >=1.0 with Chrome. ```bash pip install --upgrade "kaleido==0.2.1" ``` -------------------------------- ### Install MathJax for Node.js Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Install the mathjax package for use in a Node.js application. ```bash npm install mathjax@3 ``` -------------------------------- ### Example Node.js MathJax usage Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Example of configuring MathJax to load specific components and converting TeX to SVG in Node.js. ```javascript require('mathjax').init({ loader: {load: ['input/tex', 'output/svg']} }).then((MathJax) => { const svg = MathJax.tex2svg('\\frac{1}{x^2-1}', {display: true}); console.log(MathJax.startup.adaptor.outerHTML(svg)); }).catch((err) => console.log(err.message)); ``` -------------------------------- ### Install MathJax via Git for self-hosting Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Clone the MathJax repository and move the es5 directory to your server location. ```bash git clone https://github.com/mathjax/MathJax.git mj-tmp mv mj-tmp/es5 /mathjax rm -rf mj-tmp ``` -------------------------------- ### Load MathJax via CDN Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Use a script tag to load MathJax directly from a CDN into a web page without local installation. ```html ``` -------------------------------- ### Set up virtual environment Source: https://github.com/a-dorgham/tribosim/blob/main/README.md Create and activate a Python virtual environment for the project. ```bash python3 -m venv venv .\venv\Scripts\Activate.ps1 # On Mac-OS: venv/bin/activate ``` -------------------------------- ### Run the application Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Launch the TriboSim application. ```bash python main.py ``` -------------------------------- ### Clone the repository Source: https://github.com/a-dorgham/tribosim/blob/main/README.md Download the project source code from GitHub and navigate into the directory. ```bash git clone https://github.com/a-dorgham/TriboSim.git cd TriboSim ``` -------------------------------- ### Create virtual environment Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Create a Python virtual environment named 'venv'. ```bash python3 -m venv venv ``` -------------------------------- ### Activate virtual environment Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Activate the virtual environment. On Mac-OS, use 'venv/bin/activate' instead. ```bash .\venv\Scripts\Activate.ps1 # On Mac-OS: venv/bin/activate ``` -------------------------------- ### Initialize MathJax in Node.js Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Basic pattern for requiring and initializing MathJax in a Node.js environment. ```javascript require('mathjax').init({ ... }).then((MathJax) => { ... }); ``` -------------------------------- ### Change to TriboSim directory Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Navigate into the cloned TriboSim directory. ```bash cd TriboSim ``` -------------------------------- ### Load self-hosted MathJax Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Use a script tag to load MathJax from your own server URL. ```html ``` -------------------------------- ### Rebuild MathJax components Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/README.md Use this command to automatically regenerate the contents of the es5 directory from the MathJax source repository. ```bash npm run make-es5 --silent ``` -------------------------------- ### Clone TriboSim repository Source: https://github.com/a-dorgham/tribosim/blob/main/docs/documentation.md Clone the TriboSim repository from GitHub. ```bash git clone https://github.com/a-dorgham/TriboSim.git ``` -------------------------------- ### Bug Report Template Source: https://github.com/a-dorgham/tribosim/blob/main/assets/vendors/MathJax-3.2.2/CONTRIBUTING.md A template to be used when submitting bug reports to ensure all necessary technical details are provided. ```markdown Short and descriptive example bug report title ### Issue Summary A summary of the issue and the browser/OS environment in which it occurs. If suitable, include the steps required to reproduce the bug. ### Steps to Reproduce 1. This is the first step 2. This is the second step 3. Further steps, etc. Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead? ### Technical details: * MathJax Version: 2.3 (latest commit: f3aaf3a2a3e964df2770dc4aaaa9c87ce5f47e2c) * Client OS: Mac OS X 10.8.4 * Browser: Chrome 29.0.1547.57 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.