AnswerBun.com

Jupyter Note book and Desktop Short cut

Ask Ubuntu Asked by EnlightenedFunky on September 12, 2020

I have the following problem. I have a .ipynb in a specific folder called ~/mho of course that I have to divulge I have an anaconda installation. My questions is how can I start up Jupyter from a desktop short cut, because I already have pycharm starting from a desktop short cut. I have the following .sh file:

#!/bin/bash
cd ~/mho;conda init bash;conda activate;conda activate DataBaseOperations;jupyter notebook

I run the shell from the folder it is in it produces an error but runs.

~/Scriptfiles: sh mho.sh

But when I do the following and make it a desktop shortcut:

[Desktop Entry]
Version=1.0
Exec=sh /home/josemserrajr/Scriptfiles/mho.sh
Name=MhoNotebook
GenericName=Mho
Comment=Jupyter notebook
Encoding=UTF-8
Terminal=true
Type=Application
Categories=Appplication;Network;

It doesn’t run.

Can anybody point me in the right direction is what I want not possible? I have been basing off my research off these three questions: 1, 2,3.
Thank you in advance.

Edit

I tried this new sequence because I realized I have to restart the terminal but it doesn’t work as fine as I thought. I activates a the base conda environment.

#!/bin/bash
{
        cd ~/mho;conda init bash;exec bash
        conda activate;conda activate DataBaseOperations;jupyter notebook
}

Is there a way to run these last command line in that new terminal?

Add your own answers!

Related Questions

How to make Ubuntu read an SD card?

0  Asked on November 28, 2021

     

GLIBCXX_3.4.20 not found, how to fix this error?

8  Asked on November 26, 2021 by vesnog

       

C/C++ Netbeans LInux — Build Host not Connected

2  Asked on November 26, 2021 by victor-ibasco

     

18.04 audio (Realtek ALC3254) fails on new Dell G3 15 3590

6  Asked on November 26, 2021 by brian-mier

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir