Closed ghost closed 12 years ago
This problem is being addressed in pull request #25. The reason you are seeing this behavior is because right now d3py is meant only to be run in interactive mode. Trying to run a d3py as a script will initiate everything properly, however the fig.show() command will return immediately, then the script is over and the server will be shut down.
The pull request turns interactive mode off by default (issuing a fig.show() will block until terminated by the user), giving the functionality you would expect. If you want to play around in interactive mode, you simply need to do one of the following:
fig.ion()
fig.server(interactive=True)
Hope this helps!
PS: I will leave this issue open until the pull request goes through and I can get someone else to verify my solution is correct!
I'm going to call this issue closed!
Howdy all - just a quick update on this issue. I've made it so that by default, interactive is TRUE, so that if you're just nerding about in iTerm it'll behave interactively (with the aim that we are building an exploration tool). However, I've set interactive to FALSE when you use with
which isn't very natural for the command line but is super awesome for writing scripts etc.
I just installed d3py and trying to execute the example given here "https://github.com/mikedewar/d3py". I am unable to see anything in the browser and I have the following message
grk@ubuntu:~$ python test.py You can find your chart at http://localhost:8000/basic_example.html Shutting down httpd
The above solution didn't help.
as you can probably tell, d3py is not an actively maintained project. Please see https://github.com/wrobstory/vincent or maybe http://ggvis.rstudio.com/.
python test.py you can find your chart at http://localhost:8000/basic_example/basic_example.html Shutting down httpd Cleaning temp files
The browser window opens but the server is already shut down.
Source code: