1

I tried installing nbconvert via the instructions on their readme. The curl line and the pip install line worked flawlessly, but I can't decipher what is meant by:

You will need to either put the source repository in your $PATH or symlink the nbconvert.py script, as well as the css and js subdirectories to a directory in your $PATH.

Any idea where pip installed the app? What's this business about $PATH?

Lucio
  • 18,843

1 Answers1

3

First, download the source and keep it in a folder where you will not move it.

Second, you need to create a symbolik link between the nbconvert.py file, the css and js directories to your $PATH variable with the following command:

sudo ln -s /path_of_source/nbconvert.py /path_of_source/css/ /path_of_source/js/ /usr/bin/

Or

cd /path_of_source/
echo "export PATH=\$PATH:nbconvert.py:js:cdd" >> ~/.profile
reset

Now you will be available to execute the software from the terminal with nbconvert

Lucio
  • 18,843
  • tried adding nbconvert to my PATH using your second method, but I'm still getting an No command 'nbconvert' found message. I'm still unclear on the symlink approach. In your example command, should I be located in the nbconvert base directory, such that my command would look like sudo ln -s ./nbconvert.py ./css/ ./js/ /usr/bin? – Louis Thibault Jan 09 '13 at 08:36
  • Mmmm, first of all, that command is wrong, because you are prepending a dot to the files and that is not good (./file). – Lucio Jan 09 '13 at 23:53
  • @blz I've created a chat room to put information and keep a better communication.. Please, go there to see my messages. – Lucio Jan 09 '13 at 23:54