# Import and initialize libraries from REPL console in Processing Live Coding (Hot Swap)

**URL:** <https://discourse.processing.org/t/import-and-initialize-libraries-from-repl-console-in-processing-live-coding-hot-swap/6851>\
**Category:** Processing\
**Created:** [December 23, 2018, 12:41pm UTC](https://discourse.processing.org/t/import-and-initialize-libraries-from-repl-console-in-processing-live-coding-hot-swap/6851 "2018-12-23T12:41:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [May 28, 2019, 4:36pm UTC](https://discourse.processing.org/t/import-and-initialize-libraries-from-repl-console-in-processing-live-coding-hot-swap/6851/7 "2019-05-28T16:36:17Z")

</div>

> [@Toni](#):
>
> I do live visuals with REPL mode and, actually i’m investigating about it, looking for a way to declare new methods, new global variables or just avoiding hang up the visuals if i cast the wrong type.

If you’re using anything that uses Java’s built-in hotswapping this will not be possible. Unless you use tools that extend that (somewhat hackily) like JRebel, which is commercial, or a completely different JVM - eg. DCEVM.

Or you could use a tool that’s been designed to do live coding with Processing from the ground up, like [PraxisLIVE](https://www.praxislive.org) (I’m biased obviously! 😉). Or if you don’t mind using Ruby instead, there’s also [Visor](https://discourse.processing.org/t/visor-new-tool-for-using-processing-in-live-performance/8611).

---

_[View the full topic](https://discourse.processing.org/t/import-and-initialize-libraries-from-repl-console-in-processing-live-coding-hot-swap/6851)._
