Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:12:18+00:00 2026-06-13T14:12:18+00:00

A beginners question. running clojure using lein + emacs + nrepl. I am slightly

  • 0

A beginners question.

running clojure using lein + emacs + nrepl.

I am slightly confused about the following:

I wish to use the exponent function. This function lives in the following place clojure.math.numeric-tower. I add [org.clojure/math.numeric-tower "0.0.1"] to the dependencies and run lein deps.

Now is it possible (I’m sure it is possible) to add this to my .core ns as follows:

(ns learning.core
  (:require [clojure.math.numeric-tower :as math]))

(def i-know-the-answer
  (math/expt 2 10))

now when I try to load (ctl-x e) this into the REPL, it throws errors.

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No such namespace: math, compiling:(NO_SOURCE_PATH:2)

do the dependencies need to be loaded into the REPL directly? Can I not just change the source file / recompile it and use that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:12:19+00:00Added an answer on June 13, 2026 at 2:12 pm

    Load the file with ctrl-c ctrl-l then Switch your repl to the namespace in that file with either

    (in-ns 'learning.core)
    

    Or hit ctrl-c alt-n from the Clojure buffer to switch the repl to the buffer’s namespace. You can tell if it worked by looking at the prompt in the repl.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A beginners question about how to be memory efficient when using an UIView which
A beginners' question about foreign key in MySQL. In w3school it says, A FOREIGN
I have a quick, beginners-type-question. If I were to use jQuery and some other
Beginners question. I have started my iPython shell and I am running scripts with
A beginners question, hopefully easily answered. I've got an xml file I want to
Firstly I am new to android and Java so this is a beginners question.
This can be a good question for finding bugs. No? Okay for beginners at
Probably a very basic beginner question. Imagine the following situation: I have an ASP.NET
Hey bit of a beginners question here, I have connected to an imap server
I know this is kind of a beginners question but my books aren't explaining

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.