Easy way to add third party packages in IEX without mix

244 views
Skip to first unread message

david grupp

unread,
Jul 20, 2015, 2:29:32 PM7/20/15
to elixir-l...@googlegroups.com
Is there anyway to add third party libraries in IEX. Lets say I want to find a HTTP library like HTTPoison or HTTPotion. I could create a new project with mix and add both to my config file and then compile and pull down the libraries and then start the project in IEX but what I'm asking is there anyway to skip all the mix stuff and just directly in IEX to say add HTTPoison and then be able to just start using it? sorry if this is a duplicate or w/e.

David

Jason M Barnes

unread,
Jul 20, 2015, 3:17:45 PM7/20/15
to elixir-l...@googlegroups.com
I’ve never done it myself, but if you have the HTTPoison files available locally, you could perhaps use Code.load_file/2 or Code.require_file/2 to load the files dynamically.

Jason

On Mon, Jul 20, 2015 at 2:29 PM, david grupp <grupp...@gmail.com> wrote:
Is there anyway to add third party libraries in IEX. Lets say I want to find a HTTP library like HTTPoison or HTTPotion. I could create a new project with mix and add both to my config file and then compile and pull down the libraries and then start the project in IEX but what I'm asking is there anyway to skip all the mix stuff and just directly in IEX to say add HTTPoison and then be able to just start using it? sorry if this is a duplicate or w/e.

David

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/8b0cf618-87ed-4bdf-9ae5-fc13962b43f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

José Valim

unread,
Jul 20, 2015, 3:39:58 PM7/20/15
to elixir-l...@googlegroups.com
No, it is not possible. So far packages only exist inside a project.




José Valim
Skype: jv.ptec
Founder and Director of R&D

On Mon, Jul 20, 2015 at 8:29 PM, david grupp <grupp...@gmail.com> wrote:
Is there anyway to add third party libraries in IEX. Lets say I want to find a HTTP library like HTTPoison or HTTPotion. I could create a new project with mix and add both to my config file and then compile and pull down the libraries and then start the project in IEX but what I'm asking is there anyway to skip all the mix stuff and just directly in IEX to say add HTTPoison and then be able to just start using it? sorry if this is a duplicate or w/e.

David

--

John W Higgins

unread,
Jul 20, 2015, 3:43:59 PM7/20/15
to elixir-l...@googlegroups.com
I'm not sure this is exactly what you are looking for but I've used this - https://github.com/tsutsu/mixmux - in the past to test drive a new library I've found without the need for a project or anything else.

John



On Mon, Jul 20, 2015 at 11:29 AM, david grupp <grupp...@gmail.com> wrote:
Is there anyway to add third party libraries in IEX. Lets say I want to find a HTTP library like HTTPoison or HTTPotion. I could create a new project with mix and add both to my config file and then compile and pull down the libraries and then start the project in IEX but what I'm asking is there anyway to skip all the mix stuff and just directly in IEX to say add HTTPoison and then be able to just start using it? sorry if this is a duplicate or w/e.

David

--

david grupp

unread,
Jul 20, 2015, 4:22:04 PM7/20/15
to elixir-l...@googlegroups.com, jose....@plataformatec.com.br
when you say "So far... " does that mean it's on the road map? or would adding support would be more of a feature request or is it something that is intentionally left out of IEX?

david grupp

unread,
Jul 20, 2015, 4:23:44 PM7/20/15
to elixir-l...@googlegroups.com
This is similar to what i'm looking for but you would still need to have a project and include mixmux or add mixmux.ex every time a new IEX session is started.
Reply all
Reply to author
Forward
0 new messages