I like worksheets as an alternative to the REPL, but I keep implementing functions in the worksheet and then copying them back into the actual project. How do I import a package from the current project so that I can call those functions in the worksheet?
You can insert data from Excel into Project as a linked object that will be updated dynamically by changes made in the source file. You can also embed the data independent of its original file. In Excel, select the data (such as fields, cells, records, or rows) that you want to link or embed, and then choose Copy.
There is nothing special to do. Just do regular import of the packages you need in the worksheet. For instance:
import com.acme.myproject._
The worksheet is a totally regular source file, that simply gets evaluated in a fancy manner on save.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With