Closed Carreau closed 10 years ago
So the MacOS/nodewebkit
seem to be missing from the .app
bundle. copying it inside make the process crah.
so, rebuilding I went 1 step further :
$ pwd; node-webkit.app/Contents/MacOS/node-webkit ../../../src
ipython-desktop/cache/mac/0.9.2
...
raised an error that I could catch with the following :
diff --git a/src/js/app.js b/src/js/app.js
index e882930..74fccac 100755
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -316,7 +316,11 @@ app.factory('serverConfig', function() {
*/
function storedConfigs() {
- return JSON.parse(localStorage.servers);
+ try{
+ return JSON.parse(localStorage.servers)
+ } catch (e) {
+ return {}
+ };
}
function init() {
Aha, I think I found it, I try to access the servers
before its initialized, it works on my machine because my localstorage is now so full of junk from developing that it generally works anyway when it shouldn't. Uploaded patch, try it and hope it works, let me know how it goes.
Yep, works better. seem not to keep the settings across sessions though, and I have to investigate as I use https with auth and I get a blank page when trying to start server. Thansk
Ah if you use https it won't work, the "http://" is hardcoded. Snooping out the proper address of the running server is on the todo list - ideally I would like to fetch it from the ipython startup message so you don't have to configure a port even.
Ah if you use https it won't work, the "http://" is hardcoded. Snooping out the proper address of the running server is on the todo list - ideally I would like to fetch it from the ipython startup message so you don't have to configure a port even.
Ok, https:// is definitively a must have on multi user machines. It is true that parsing the output is not awesome. There is probably a way to have the notebook output that info as Json somewhere, or even directly json in the log. Would it help ?
I'm probably missing a buid step somewhere :
Doing from source because I have issues with bundle that do not store configuration.