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.
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?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP