Hi @elmsfeuer
Has anyone developed a good method to link them that is easy and quick, or a way to launch Anaconda/Jupyter with a link from Obsidian?
You can use Markdown link syntax:
[Link](file:///Users/dmitry/Documents/jupiter-notebook/lorenz.ipynb)
When clicking on the link Obsidian will delegate its handling to the OS. So the “tricky” part is to make your system to know how to open files with the .jpynb
extension.
On macOS you can create an Automator workflow, save it as Application and point the OS to use it to open .jpyng
files:
-
Open Automator and drag “Run Shell Script” action into the workflow area
-
Set “Pass input” option to “as arguments”.
-
Paste in the following code:
#!/bin/sh
file="'$1'"
scr='tell application "Terminal" to do script "jupyter notebook '
osascript -e "${scr}${file}\""
-
Save the workflow as “Jupyter Notebook” in your “Applications” folder and set “File Format” to “Application”.
-
In the “Info” dialog to an .ipynb
file set the “Open with” option to “Jupyter Notebook.app”. Click “Change All” and confirm the pop-up dialog.
On a Linux system you can create a shell script like this:
#!/bin/sh
jupyter notebook "$1"
make it executable and point the OS to use it to open .jpynb
files (on MS Windows, I assume, you can create a similar .bat
file instead).
Hope this helps.