Is there a way to import packages from your current project into a worksheet

I like worksheets as an alternative to REPL, but I continue to implement functions on the worksheet and then copy them back to the actual project. How to import a package from the current project so that I can call these functions on a worksheet?

+6
source share
1 answer

There is nothing special. Just regularly import the packages you need on the worksheet. For instance:

import com.acme.myproject._ 

A worksheet is a completely regular source file that is simply evaluated using save.

+7
source

Source: https://habr.com/ru/post/926643/


All Articles