# (require plot) not working

**URL:** <https://racket.discourse.group/t/require-plot-not-working/3132>\
**Category:** Questions & Answers\
**Created:** [August 29, 2024, 11:30pm UTC](https://racket.discourse.group/t/require-plot-not-working/3132 "2024-08-29T23:30:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexG](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@AlexG](https://racket.discourse.group/u/AlexG)\
**Post date:** [August 29, 2024, 11:30pm UTC](https://racket.discourse.group/t/require-plot-not-working/3132/1 "2024-08-29T23:30:59Z")

</div>

I am trying to add some plotting to a program that uses malt - (require malt) - the library that is provided as support to _The Little Learner_.

> **[GitHub - themetaschemer/malt: Machine Learning Toolkit accompanying The Little...](https://github.com/themetaschemer/malt)**
>
> Machine Learning Toolkit accompanying The Little Learner by Daniel P. Friedman and Anurag Mendhekar

When I add (require plot), I get the error:  
. module: identifier already required  
also provided by: malt in: line

Is there some way I can fix this? Using Dr.Racket 8.6 under Ubuntu.

Thanks!

---

<div class="post-metadata">

**Author:** ![EmEf](https://avatars.discourse-cdn.com/v4/letter/e/53a042/32.png) [@EmEf](https://racket.discourse.group/u/EmEf)\
**Post date:** [August 30, 2024, 12:57am UTC](https://racket.discourse.group/t/require-plot-not-working/3132/2 "2024-08-30T00:57:26Z")

</div>

`(require (except-in plot line))` would import from plot everything except for `line`.

`(require (prefix-in p: plot))` would import everything from plot but the module has to use the imported functions with “p:” pre-pended.

---

<div class="post-metadata">

**Author:** ![AlexG](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@AlexG](https://racket.discourse.group/u/AlexG)\
**Post date:** [August 30, 2024, 1:33am UTC](https://racket.discourse.group/t/require-plot-not-working/3132/3 "2024-08-30T01:33:42Z")

</div>

Thanks very much!

I'd tried using "except-in", but I misunderstood what was causing the conflict. It all makes perfect sense now, I couldn't see what on earth could be clashing in these two modules before. I should use Racket more...
