wolfe-pack / moro

Interactive documentation and programming with Scala, iPython notebook style.
http://wolfe-pack.github.io/moro
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

Placing Figures into more notebook folders #89

Open riedelcastro opened 8 years ago

riedelcastro commented 8 years ago

Currently I need to add a link from moro/public to wherever I put figures I include in my notebooks. Ideally I like the figures somewhere close to my notebooks w/o having to add this link (because book users need to set up this link as well).

sameersingh commented 8 years ago

The problem is that the Play web service cannot directly access anything outside of the "\public" path. Maybe a hint here: https://www.playframework.com/documentation/2.0/Assets

On Tue, Oct 6, 2015 at 4:11 PM, Sebastian Riedel notifications@github.com wrote:

Currently I need to add a link from moro/public to wherever I put figures I include in my notebooks. Ideally I like the figures somewhere close to my notebooks w/o having to add this link (because book users need to set up this link as well).

— Reply to this email directly or view it on GitHub https://github.com/wolfe-pack/moro/issues/89.

riedelcastro commented 8 years ago

Or maybe here: http://stackoverflow.com/questions/22146586/play-additional-public-assets-directory

sameersingh commented 8 years ago

This sounds like it's not a configurable option then, but instead hardcoded.

If all notebooks are checked in publicly, you can always add their URL from github.

On Tue, Oct 6, 2015 at 4:48 PM, Sebastian Riedel notifications@github.com wrote:

Or maybe here: http://stackoverflow.com/questions/22146586/play-additional-public-assets-directory

— Reply to this email directly or view it on GitHub https://github.com/wolfe-pack/moro/issues/89#issuecomment-146036267.

riedelcastro commented 8 years ago

I am thinking of just generally allowing access to png files using a specific route which is mapped to the same file location (the docRoot) as the notebooks themselves.

sameersingh commented 8 years ago

And read the docRoot from the conf file, yeah, that would work.

On Tue, Oct 6, 2015 at 5:08 PM, Sebastian Riedel notifications@github.com wrote:

I am thinking of just generally allowing access to png files using a specific route which is mapped to the same file location (the docRoot) as the notebooks themselves.

— Reply to this email directly or view it on GitHub https://github.com/wolfe-pack/moro/issues/89#issuecomment-146040381.