clj-swingrepl icon indicating copy to clipboard operation
clj-swingrepl copied to clipboard

start repl in specific namespace?

Open krisc opened this issue 11 years ago • 3 comments
trafficstars

Is there a way when creating a repl with make-repl-jframe to start in a specific namespace and not the user namespace?

krisc avatar Jan 15 '14 23:01 krisc

I'm interested too, did you find a solution since those last two years?

Grahack avatar Jan 04 '16 19:01 Grahack

:init #(in-ns 'microalg.clj.microalg) should work as:

  • it works for clojure.main/repl,
  • the function seems to be executed since when I change in-ns to whatever et throws an error at startup.

But the repl is still starting in user.

Grahack avatar Jan 05 '16 17:01 Grahack

In fact it works, but only 1.3.0 has been published to clojars with the swingrepl id.
uk.org.russet/swingrepl worked for me.

Grahack avatar Jan 07 '16 11:01 Grahack