Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 519
Arne Claassen Avatar asked Oct 01 '12 04:10

Arne Claassen


People also ask

Can you link Project and Excel?

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.


1 Answers

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.

like image 177
Bozhidar Batsov Avatar answered Oct 21 '22 18:10

Bozhidar Batsov