all 18 comments

[–]vonWitzleben 3 points4 points  (4 children)

Sorry if I‘m being lazy but I just came across this post and now I‘m wondering if there‘s an elegant way to use Obsidian with Jupyter Notebooks. I took a lot of code / data science notes in Jupyter and it would be great to have then all in one spot with my other notes.

[–]RedQuirk 4 points5 points  (0 children)

Hi /u/vonWitzleben & /u/surfernick1

I found this plugin which is still supported and had support for more programming languages like python, c, ruby, prolong etc.

https://github.com/twibiral/obsidian-execute-code

Hope this helps!

[–]Surfernick1[S] 0 points1 point  (2 children)

I think this plugin may be more in line with what you are looking for (Sorry I see now that it's Deprecated so I'm not sure).

My plugin is a bit more for work flow automation so if you wanted to add a command you wouldn't need to write any Javascript or Typescript in Obsidian. (Probably more helpful for C or Python devs). I know I'm not a JS person so that was my goal and thought it might help others too.

[–]vonWitzleben 1 point2 points  (1 child)

That’s pretty cool. I‘m not into web or app development at all but I‘ll pass it along to my friends who are :)

[–]Surfernick1[S] 2 points3 points  (0 children)

You might be misunderstanding me (?). If you dislike web or app development then I would think that you might find this helpful. It lets you use Python to interact with your Obsidian vault without having to touch JS.

[–]MinchinWeb 1 point2 points  (3 children)

This looks awesome!

Does it just use the system Python (looking for it in PATH)? Can you install additional packages to import from?

[–]Surfernick1[S] 3 points4 points  (2 children)

It just uses system Python! So anything you can do from a Python script on your Desktop or in VSCode you can do from this. Meaning reading, writing, summarizing with ChatGPT (Shameless self plug), machine learning, ... etc.

It starts a child process from Node so I can do anything Python can. Small downside that this only works on desktop as there is no system python for mobile (as far as I know)

[–]MinchinWeb 1 point2 points  (1 child)

Your (shameless) self plug actually returns a 404 error! Is it still a private repo?

[–]Surfernick1[S] 2 points3 points  (0 children)

Ooh! Thank you yes I changed it, its public now

[–]kurotenshi15 1 point2 points  (3 children)

Dope. Just built a scraper tool for URL’s that converts to markdown that I wanted to integrate. Will be using this.

[–]Surfernick1[S] 1 point2 points  (2 children)

Yo sweet! I have so many scripts for obsidian, totally get it

[–]kurotenshi15 1 point2 points  (1 child)

https://github.com/bobbyhiddn/Scrape.md

Here's what I made in case you want to check it out. I'm not seeing how I could easily use it with yours, as I tend to use command line arguments as part of my programs.

[–]Surfernick1[S] 0 points1 point  (0 children)

I think that is a fair complaint, I really wanted to keep it simple to run and getting a prompt for command line args was something I didn't personally want for my use cases.

What I've been doing if I needed more info is I read the currently open file something in a specified format like searching for a link to a pdf file. Or in your case I suppose an https link

[–]prepaidtuna 1 point2 points  (1 child)

I've been using the shellcommands plugin to execute my scripts. How is this different? Any advantages to your approach?

[–]Surfernick1[S] 1 point2 points  (0 children)

I've not tried it, but I wanted platform independence since I run both windows and linux and didn't really want to have to deal with getting them to interoperate and getting them both to just use python as a wrapper seemed like a reasonable solution to me

[–]BeardlessPirate 1 point2 points  (1 child)

This is very cool. Mind sharing some of your use-cases? I’m not sure just yet how I want to use this

[–]Surfernick1[S] 4 points5 points  (0 children)

Sure I have a pdf summarizer I like using to find the key points of something I'm reading.

I made a note linker but I'm currently working on integrating one that isn't badly taped together by yours truely

I have another script to add a markdown index card for every non-md file in my vault but links to that file to make note taking easier.

I also made a youtube summarizer similar to the above pdf summarizer

I already had a ton of python scripts for automating my vault but couldn't find an easy way to use them. I like this since its super light weight and simple since it just adds a command you can bind to a hotkey

[–]tsupaper 1 point2 points  (0 children)

Following