Comments (11)
I'm using ssh -Y from my Mac OS X Lion to ubuntu 12 machine which has incanter (1.3.0) code, and graphs are displayed properly.
What's your environment, and is environmental variable $DISPLAY set?
from incanter.
Kei Tsuji [email protected] writes:
I'm using ssh -Y from my Mac OS X Lion to ubuntu 12 machine which has
incanter (1.3.0) code, and graphs are displayed properly. What's your
environment, and is environmental variable $DISPLAY set?
I tested with a relatively current Debian unstable machine connecting to
itself via "ssh -Y foo@localhost"; other X apps like xeyes work fine
over that link.
Also, I'm using this project.clj:
(defproject incanter-helloworld "0.1.0"
:description "The Incanter version of hello world."
:dependencies [[incanter "1.3.0"]])
this core.clj:
(ns incanter-test.core
(:use (incanter core stats charts)))
(defn main [& args](let [lengths %28read%29]
%28view %28histogram lengths :nbins 100%29%29))
(main command-line-args)
and this invocation:
java -cp 'lib/*' clojure.main src/incanter_test/core.clj < lengths
That works fine when logged in directly, but not over ssh.
Oh, and here's the java version:
$ java -version
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.3) (7u3-2.1.3-1)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
Thanks for the help.
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
from incanter.
From: rlbdv [email protected]
Subject: Re: [incanter] Incanter produces a blank window over ssh -X or -Y (#97)
Date: Thu, 08 Nov 2012 19:38:22 -0800
I tested with a relatively current Debian unstable machine connecting to
itself via "ssh -Y foo@localhost"; other X apps like xeyes work fine
over that link.
..
and this invocation:java -cp 'lib/*' clojure.main src/incanter_test/core.clj < lengths
That works fine when logged in directly, but not over ssh.
Oh, and here's the java version:
$ java -version
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.3) (7u3-2.1.3-1)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
I tested like below.
project.clj
(defproject incanter-helloworld "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.4.0"]
[incanter/incanter-core "1.3.0"]
[incanter/incanter-charts "1.3.0"]]
:main incanter-helloworld.core)
core.clj
(ns incanter-helloworld.core
(:use (incanter core stats charts))
(:gen-class))
(defn -main [& args](let [lengths %28read%29]
%28view %28histogram lengths%29%29))
% lein version
Leiningen 2.0.0-preview10 on Java 1.7.0 Java HotSpot(TM) 64-Bit Server VM
% java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
and I tested with
% lein trampoline run < lengths
and your sample still worked.
So I'm not sure if this is incanter's issue.
ktsuji
from incanter.
Kei Tsuji [email protected] writes:
I tested like below.
[...]
and your sample still worked.
So I'm not sure if this is incanter's issue.
I tried something similar to your example, and still saw the blank
screen.
Though I'm also running xmonad; perhaps its insistence on resizing the
window is causing trouble -- I'll see about testing without it.
I suppose it could also have something to do with Debian (or just Linux)
as the ssh (X) client. I don't know if it's convenient, but if you
happen to have vnc access (or similar) to your Ubuntu machine, you might
be able to test that too.
Thanks
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
from incanter.
@rlbdv I was just wondering if you ever fixed this. I'm using xmonad too and having the same issue as you. I'm not ssh-ing though.
from incanter.
Samrat Man Singh [email protected] writes:
@rlbdv I was just wondering if you ever fixed this. I'm using xmonad
too and having the same issue as you. I'm not ssh-ing though.
I haven't tried in a while, but no I never got it to work.
I believe it worked when I ran incanter locally, but I'm not sure I was
using xmonad with that account -- so I suppose it could be related to
xmonad rather than to ssh X forwarding.
I'll try to test locally with xmonad when I get a chance.
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
from incanter.
I finally got around to testing this more directly, and it looks like it probably does have something to do with xmonad. For example, on a (recent) Debian system, with xmonad installed, a "(view (histogram (sample-normal 1000)))" produces a blank window if I log in via gdm3 to an xmonad or xmonad+gnome session. It behaves normally with a plain gnome session.
Please let me know if I can provide any further information, and I'll probably contact the xmonad developers as well.
Thanks.
from incanter.
The xmonad community had the answer -- it appears to be a known java (AWT) problem, and one solution is to export _JAVA_AWT_WM_NONREPARENTING=1 before running incanter.
http://code.google.com/p/xmonad/issues/detail?id=544
So I suspect it's safe to close this bug.
from incanter.
Thank you, I'lm closing the bug
from incanter.
Just for info: A friend of mine ( @ardumont ) has the same kind of problem with the StumpWM window manager.
from incanter.
Yes, I concur with @denlab, I have the problem on stumpwm.
And yes, this export variable solve this. So, not a incanter problem.
Thanks, I will no longer need to switch!!!
from incanter.
Related Issues (20)
- can't install artifact bouncycastle:bctsp-jdk14:jar:138 in central HOT 17
- incanter.charts relies on an apparently outdated jfreechart, which deprecated some stuff HOT 5
- Problems with linear model in Incanter 1.9.2 HOT 3
- Migrate root incanter project.clj to clojure 1.9, modules are already there. HOT 1
- IndexOutOfBoundsException when reading XLS file HOT 12
- incanter.sql error with jdbc/find-connection HOT 2
- (use '(incanter excel)) error HOT 4
- https://wiki.github.com/liebke/incanter malform issue HOT 1
- Can't save datasets unless incanter.io is loaded HOT 1
- Problems downloading artifacts from central
- wunderground API reference in README 400s HOT 2
- Integers coerce to Floats when creating a dataset from an xls document HOT 4
- Update options in some incanter.stats functions docstrings HOT 1
- Set stroke color seems to have a bug on scatter plots. HOT 2
- Error when running Incanter on Docker HOT 2
- t-test is equal for paired and unpaired samples HOT 1
- Wrong pvalue might be calculated in ttest in incanter.stats
- namespace 'incanter.excel.cells' not found, when use excel
- `[com.lowagie/itext "2.1.7"]` is vulnerable
- incanter.core/abs shadows clojure.core/abs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incanter.