Evaluating code inside vim?

It may not be exactly what you’re wanting, but I use vim-slime and run an iex shell in either nvim’s terminal or in tmux.