livebook
Has anyone ever created some Ash resources and tried to use (ie create and interact with) them in a LiveBook without publishing code to Hex or a private repository? I'm in the middle of trying. The concept: use Livebook instead of iex. I know, crazy.
Solution:Jump to solution
The problem with the excellent educational livebook for my case is that I'm not learning Ash -- I want something better than IEx to interact with my code (which depends on Ash and a ton of other functionality), like a library. I am not just asking the universe for a solution. I have a solution for my app, and it's pretty bad. I will document this and I'm closing this issue. Anyone who stumbles on this post should be aware that they should not attempt.
9 Replies
We have an educational livebook
Maybe that' has some inspiration
Solution
The problem with the excellent educational livebook for my case is that I'm not learning Ash -- I want something better than IEx to interact with my code (which depends on Ash and a ton of other functionality), like a library. I am not just asking the universe for a solution. I have a solution for my app, and it's pretty bad. I will document this and I'm closing this issue. Anyone who stumbles on this post should be aware that they should not attempt.
I see what you mean now. You can do this but you have to basically connect to your running application IIRC. Its not so much an Ash question but a livebook question, and I'm not sure how to set it up but its 100% doable 🙂
Livebook wants to be a stand-alone thing. I'm mixing apples and oranges. It's understandable. Sorry to have burned any of your time on this.
not at all, you can definitely do what you're describing
I've even done it before and it was really cool
Elixir Programming Language Forum
How to load my local project modules in livebook?
And use it like we do during iex -S mix run --no-start command for that local project, while using live book. I am running live book locally, How to achieve this?
here is an example