Wish this was in the Incanter docs and in the Readme

On Tuesday, August 13, 2013 at 12:09:20 PM UTC-7, Tim Visher wrote:
>
> LOL. I just realized I'd been missing that all along. 
>
> It seems like the community is more and more leaning to something like 
> this, just FYI. 
>
> (ns default.core 
>   (:require (incanter [core      :refer :all] 
>                             [charts    :refer :all] 
>                             [stats      :refer :all] 
>                             [datasets :refer :all]))) 
>
> `:use` has been discussed in the interest of deprecating it many times. 
>
> I did not test the above declaration. 
>
> On Tue, Aug 13, 2013 at 2:40 PM, Akhil Wali <green.tr...@gmail.com 
> <javascript:>> wrote: 
> > Well this is embarrassing. 
> > 
> > I was having a wrong use syntax >.<. 
> > Changed the import line to this and it works. 
> > 
> > (ns default.core 
> >   (:use [incanter core charts stats datasets])) 
> > 
> > Thanks for the help though!! 
> > 
> > On Tuesday, August 13, 2013 11:57:46 PM UTC+5:30, Akhil Wali wrote: 
> >> 
> >> Yes, by nrepl-jack-in. 
> >> 
> >> On Tuesday, August 13, 2013 11:54:24 PM UTC+5:30, Tim Visher wrote: 
> >>> 
> >>> And you're connecting to the project how? 
> >>> 
> >>> On Tue, Aug 13, 2013 at 2:11 PM, Akhil Wali <green.tr...@gmail.com> 
> >>> wrote: 
> >>> > Well 
> >>> > Here's my project.clj. 
> >>> > 
> >>> > (defproject someproj "0.1.0-SNAPSHOT" 
> >>> >   :dependencies [[org.clojure/clojure "1.5.1"] 
> >>> >                  [incanter "1.5.2"]]) 
> >>> > 
> >>> > Here's my .lein/profiles.clj as well. 
> >>> > 
> >>> > {:user {:plugins [[lein-ritz "0.7.0"] 
> >>> >                   [compojure-app/lein-template "0.2.7"]] 
> >>> >         :dependencies [[ritz/ritz-nrepl-middleware "0.7.0"]] 
> >>> >         :repl-options {:nrepl-middleware 
> >>> >                        [ritz.nrepl.middleware.javadoc/wrap-javadoc 
> >>> > 
> >>> > ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}} 
> >>> > 
> >>> > 
> >>> > 
> >>> > On Tuesday, August 13, 2013 11:35:58 PM UTC+5:30, Tim Visher wrote: 
> >>> >> 
> >>> >> On Tue, Aug 13, 2013 at 1:59 PM, Akhil Wali <green.tr...@gmail.com> 
>
> >>> >> wrote: 
> >>> >> > Hi All, 
> >>> >> > 
> >>> >> > A really noob question. 
> >>> >> > 
> >>> >> > Why do I get "FileNotFoundException Could not locate 
> >>> >> > incanter__init.class or 
> >>> >> > incanter.clj on classpath:   clojure.lang.RT.load (RT.java:443)" 
> >>> >> > when i 
> >>> >> > load 
> >>> >> > a file that uses incanter in emacs? 
> >>> >> > Here's the file... 
> >>> >> > 
> >>> >> > (ns default.core 
> >>> >> >   (:require incanter core charts stats datasets)) 
> >>> >> > 
> >>> >> > (defn plot [] 
> >>> >> >   (view (scatter-plot :Sepal.Length :Sepal.Width 
> >>> >> >                       :group-by :Species 
> >>> >> >                       :data (get-dataset :iris)))) 
> >>> >> > 
> >>> >> > (plot) 
> >>> >> > 
> >>> >> > This works in lein repl just fine. 
> >>> >> > I'm using Emacs 24 and nrepl.el 0.1.8. 
> >>> >> > 
> >>> >> > This issue was posted on Github way long back. Seems to be 
> solved, 
> >>> >> > but 
> >>> >> > by 
> >>> >> > simply upgrading emacs. Doesn't really work in my case. 
> >>> >> > Any advise? 
> >>> >> 
> >>> >> Couple things. 
> >>> >> 
> >>> >> 1. I'm assuming you've declared the proper dependencies in your 
> >>> >> `project.clj` file since this works from `lein repl`, however it's 
> >>> >> worth checking. 
> >>> >> 
> >>> >> 2. How are you connecting to your project? Simply loading the 
> >>> >> namespace won't work if you haven't properly jack in. There's a 
> number 
> >>> >> of options here but the simplest is probably to use `M-x 
> >>> >> nrepl-jack-in` (usually bound to `C-c M-j`) from this file. It 
> should 
> >>> >> Just Work™. 
> >>> >> 
> >>> >> If that doesn't work, I'd probably post some more details about the 
> >>> >> project somewhere. At least the `project.clj` and the whole ns 
> would 
> >>> >> be helpful in a gist of some sort. 
> >>> >> 
> >>> >> -- 
> >>> >> 
> >>> >> In Christ, 
> >>> >> 
> >>> >> Timmy V. 
> >>> >> 
> >>> >> http://blog.twonegatives.com/ 
> >>> >> http://five.sentenc.es/ -- Spend less time on mail 
> >>> > 
> >>> > -- 
> >>> > -- 
> >>> > You received this message because you are subscribed to the Google 
> >>> > Groups "Clojure" group. 
> >>> > To post to this group, send email to clo...@googlegroups.com 
> >>> > Note that posts from new members are moderated - please be patient 
> with 
> >>> > your 
> >>> > first post. 
> >>> > To unsubscribe from this group, send email to 
> >>> > clojure+u...@googlegroups.com 
> >>> > For more options, visit this group at 
> >>> > http://groups.google.com/group/clojure?hl=en 
> >>> > --- 
> >>> > You received this message because you are subscribed to the Google 
> >>> > Groups 
> >>> > "Clojure" group. 
> >>> > To unsubscribe from this group and stop receiving emails from it, 
> send 
> >>> > an 
> >>> > email to clojure+u...@googlegroups.com. 
> >>> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > -- 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com 
> <javascript:> 
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com <javascript:> 
> > For more options, visit this group at 
> > http://groups.google.com/group/clojure?hl=en 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Clojure" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to clojure+u...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to