The only option I'm aware of is to check `isdefined` for individual
packages:

isdefined(:Juno) || isdefined(:IJulia) || ...

But doing so is not very general.

Perhaps a more general question is: what capability do you want to detect?
Can you define what would be the lowest-common-denominator capability
represented by an `isgui()` function, analogous to `isinteractive`?

There have been some similar discussions around both MIME capabilities and
abstract graphics APIs. The first was resolved with the overloadable
`display` design in base. For the second, the consensus was to remove the
"Graphics" module from Base because a single abstract API could not be
general enough to cover the needs of all plotting packages (now this
functionality lives in  the Graphics.jl package for those  that use it; see
also https://github.com/JuliaLang/Graphics.jl/issues/1)


On Fri, Jun 26, 2015 at 9:48 AM, Josef Heinen <[email protected]> wrote:

> Can anybody tell me, how to find out, whether we are running in a "simple"
> terminal session or in a GUI environment (Juni, Jupyter, ...) ?
>

Reply via email to