Jupyter Server: Difference between revisions
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Install Python | Install Python | ||
<pre>sudo apt install python3-pip python3-dev</pre> | <pre> | ||
sudo apt install python3-pip python3-dev | |||
sudo -H pip3 install virtualenv | |||
</pre> | |||
Upgrade PIP | |||
<pre>sudo -H pip3 install --upgrade pip | <pre>sudo -H pip3 install --upgrade pip | ||
</pre> | |||
Libraries | General Libraries | ||
<pre>sudo aptitude install libxml2-dev | <pre> | ||
sudo aptitude install libxml2-dev | |||
sudo aptitude install libssl-dev | |||
sudo aptitude install libcurl4-openssl-dev | |||
</pre> | |||
For Notebook Conversion | |||
<pre> | |||
sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic pandoc | |||
</pre> | |||
== WebPDF == | |||
install dependencies | |||
<pre>sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget | |||
</pre> | |||
pyppeteer | |||
<pre>pip install pyppeteer</pre> | |||
Run once to allow chromium to install | |||
<pre>jupyter nbconvert --to webpdf --allow-chromium-download Popp_Brian_HW1_report.ipynb</pre> | |||
Latest revision as of 19:27, 6 September 2023
Create user to run the service
sudo useradd spark sudo usermod -aG sudo spark
Install Python
sudo apt install python3-pip python3-dev sudo -H pip3 install virtualenv
Upgrade PIP
sudo -H pip3 install --upgrade pip
General Libraries
sudo aptitude install libxml2-dev sudo aptitude install libssl-dev sudo aptitude install libcurl4-openssl-dev
For Notebook Conversion
sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic pandoc
WebPDF
install dependencies
sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
pyppeteer
pip install pyppeteer
Run once to allow chromium to install
jupyter nbconvert --to webpdf --allow-chromium-download Popp_Brian_HW1_report.ipynb