Jupyter Notebook and "File/Download as/pdf" not working - jupyter-notebook

I can run jupyter nbconvert SageTest.ipynb --to pdfwithout any problem from a terminal window. But doing this directly from the notebook using File -> Download as -> pdf will not work: nbconvert failed: xelatex not found on PATH. What to do? The same happens if I try to store it as ascii-file: Pandoc not found (but it is installed properly).
My environment: macOS Monterey 12.1, TeXLive2021, Safari 15.3

Related

Jupyterlab and Jupyter notebook don't recognize Google Drive folder

I reinstalled Anaconda because I couldn't update my Jupyterlab to the latest version, which was required to install some extensions. But after reinstallment, I still can not install extensions. In addition, Jupyter doest recognize my Google Drive folder (stream files, with some offline files, I used to work with them before reinstalling Anaconda).
I noted my problems in details:
I can not see my Google Drive folder from Jupyter's File Browser. I still see it from MacOS Files. I tried to copy my Google drive path /Volumes/GoogleDrive to open in Jupyter's File Browser, but it didn't work.
Anaconda is showing Jupyter lab 3.4.4 (see photo), but from the terminal, my version is 3.0.16. I can't install any extension as Jupyter said the minimum version was 3.5.
jupyter core : 4.7.1
jupyter-notebook : 6.4.0
qtconsole : not installed
ipython : 7.24.0
ipykernel : 5.5.5
jupyter client : 6.1.12
jupyter lab : 3.0.16
nbconvert : 6.0.7
ipywidgets : not installed
nbformat : 5.1.3
traitlets : 5.0.5
I am using MacBook pro rentina 2013 with macOS Big Sur.
Please give me some suggestions.
Many thanks in advance!
Andy

Jupyter notebook launch results in Exit code 1

Whenever I try to launch Spyder or Jupyter notebook from Anaconda Navigator it returns Exit code: 1. I tried to set paths and upgrade packages, but nothing works.
What is causing this and how can I fix it?
Details
Windows 8
Jupyter Notebook v6.4.5
Spyder v5.1.5

Jupyter command not found on Mac OS Catalina

I'm trying to run Jupyter notebook on Mac OS Catalina. I followed the basic instructions:
pip3 install jupyter
I tried everything that is mentioned in the other answers here on stack overflow. I have edited the .bash_profile file, and I have tried to start the notebook with
~/local/bin/jupyter
But nothing is working. My .bash_profile looks like this:
export PATH="/usr/local/mysql/bin:/usr/local/bin:/usr/local/git/bin:$PATH"
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
How can I run Jupyter Notebook on Mac OS Catalina?
I have encountered the similar annoying problem and here is my one-line solution:
Open terminal and type:
brew install jupyter
If you haven't install brew on your Mac, please follow the instruction here: https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Wait for around 10 minutes until the installation finishes and try jupyter again.
Explain:
It helps download a lot of "Catalina" related packages, like
==> Downloading https://homebrew.bintray.com/bottles/jupyterlab-2.1.5.catalina.bottle.tar.gz
......
==> Downloading https://homebrew.bintray.com/bottles/ipython-7.16.1.catalina.bottle.tar.gz
......
See
https://github.com/dotnet/interactive/issues/34
for the latest discussions on this issue.
From the comments:
Try opening Visual Studio Code and installing Jupyter extensions there if the above method does not work.

Jupyter Notebook Download As LaTeX or PDF fails, but works from command line using nbconvert

Related to this question IPython/Jupyter Problems saving notebook as PDF
On macOS,
jupyter nbconvert example.ipynb --to latex
works just fine. pandoc is on my path at /usr/local/bin/pandoc.
However, within the running notebook, "File: Download as: Latex" results in an error.
500 : Internal Server Error
The error was:
nbconvert failed: Pandoc wasn't found.
Please check that pandoc is installed:
http://pandoc.org/installing.html
Is there a path variable I should be setting somewhere?

Jupyter Notebook download to other format not working

I am using Jupyter on Linux, Jupyter itself is working fine, I need to download my notebook to pdf through the Jupyter menu. I tried following the error message to install pandoc, ...., just not successful, still error out like below:
nbconvert failed: pandoc wasn't found.
I already installed both nbconvert and pandoc though.
Thanks.

Resources