Posts

Showing posts with the label Jupyter

Convert Ipynb To Pdf In Jupyter

Answer : A simple and surprisingly good solution is to print the notebook to pdf through the browser with ctrl+p . Just make sure your plots and figures are not on interactive mode otherwise they will not be displayed (set them to %matplotlib inline ). Exporting jupyter notebooks through latex is quite troublesome and takes a lot of tinkering to get something remotely close to publish ready. When I absolutely need publication quality I do it on a latex editor, but this tutorial goes in great length about doing it on jupyter. A few useful tips to get better results: Higher resolution plots Hide your code-cells from the pdf Take a look at these extensions to improve your jupyter documents For Mac OS X, the solution for me was to install MacTex first and then export the path to find it: ### TeX export PATH="/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin:$PATH" You can add this to your .bash_profile or similar config file to load it every time. See more here ...

CreateProcessW Failed Error:2 Ssh_askpass: Posix_spawn: No Such File Or Directory Host Key Verification Failed, Jupyter Notebook On Remote Server

Answer : According to the openssh docs, the ssh client, which will usually prompt for a password on the command line, will try to show a GUI dialog for the user to enter his password, if SSH_ASKPASS and DISPLAY environment variables are set. On windows however, this is not properly supported yet, as the needed ssh_askpass binary is missing, and also because this seems still pretty X11 oriented. Git for windows however seemed to get it working properly. Of course, if you are just interested in entering your password on the command line, make sure the variables are unset. With the information you provided, it is however impossible to answer why the variable was set in the first place. If you need the DISPLAY variable set because you want to use VcXsrc or another X-Server in Windows 10 the workaround is to add the host you want to connect to your known_hosts file. This can be done by calling ssh-keyscan -t rsa host.example.com | Out-File ~/.ssh/known_hosts -Append -Encoding ASCII; ...

After Installing With Pip, "jupyter: Command Not Found"

Answer : you did not log out and log in ? It should be on your path to execute. If not, pip installed executables in .local, so in a terminal: ~/.local/bin/jupyter-notebook should start notebook To be able to run jupyter notebook from terminal, you need to make sure that ~/.local/bin is in your path. Do this by running export PATH=$PATH:~/.local/bin for your current session, or adding that line to the end of ~/.bashrc to make your changes last for future sessions (e.g. by using nano ~/.bashrc ). If you edit ~/.bashrc you will need to log out and log back in to make see your changes take effect. Try python -m notebook Or, if you used pip3 to install the notebook: python3 -m notebook On Mac OS Catalina and brewed Python3.7