Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 14 02:00
    quixoticblink opened #323
  • Feb 11 09:56
    pari93411 commented #53
  • Jun 20 2019 18:56
    n-marion opened #322
  • Apr 16 2019 19:55
    opokualbert commented #298
  • Dec 14 2018 22:22
    cjiang-ibm opened #321
  • Dec 05 2018 15:07
    grahamwills closed #320
  • Dec 05 2018 15:07
    grahamwills commented #320
  • Dec 05 2018 13:41
    dmitriyshashkin opened #320
  • Nov 26 2018 09:40
    xuexuemiao commented #243
  • Nov 20 2018 09:36
    xuexuemiao commented #243
  • Nov 20 2018 09:27
    xuexuemiao commented #243
  • Nov 20 2018 09:21
    xuexuemiao commented #243
  • Nov 20 2018 09:21
    xuexuemiao commented #243
  • Nov 20 2018 09:20
    xuexuemiao commented #243
  • Nov 19 2018 13:08
    xuexuemiao commented #243
  • Nov 19 2018 13:07
    xuexuemiao commented #243
  • Nov 19 2018 13:06
    xuexuemiao commented #243
  • Nov 19 2018 13:05
    xuexuemiao commented #243
  • Nov 06 2018 16:35
    grahamwills commented #319
  • Nov 06 2018 14:06
    dpierucci opened #319
tigerquoll
@tigerquoll
I notice Brunel is trying to pull in some javascript libraries externally?
Is there an easy way to get to pull local copies of these libraries?
Just starting to go through the code now.
Dan Rope
@danrope
There is no way to do this at the moment in brunel/notebooks, but an option like this could be added. Note that the map geo data would also have to be included as this is also pulled from online sources.
tigerquoll
@tigerquoll
Ok, are there many different js libraries it pulls down?
tigerquoll
@tigerquoll
Had wondered about the map geo data.
What URL is it pulled from?
For the time being I'll try and bodge something up. Brunel + Jupyter + Spark looks like a very nice combination.
Dan Rope
@danrope
Thanks! The easiest way to see all JS/CSS dependencies is to deploy a Brunel graph to JS Fiddle using our web app: http://brunel.mybluemix.net/gallery_app/renderer. (Click Deploy/Source Code). For Toree notebooks, the (hard-coded) dependencies are in the html template here: https://github.com/Brunel-Visualization/Brunel/blob/master/spark-kernel/src/main/scala/com/ibm/spark/magic/builtin/Brunel.scala. The map geo is pulled from brunelvis.org, but we don't have the contents in any sort of packaged form at the moment.
tigerquoll
@tigerquoll
thanks.
tigerquoll
@tigerquoll
With a bit of work (and some recompiling managed to get Brunel/Toree working offline. Thanks for your help.
mahesh2013
@mahesh2013
Hi,
I'm trying to create Brunel charts based on a spark data frames on Jupyter Toree scala notebook.
Example: %%brunel data('discovered_types_Drug') stack polar bar y(value) polar color(name) label(name) percent(value) tooltip(#all).
When I save/checkpoint the notebook and open on other jupyter session, I don't see these charts until I run again to create data frames. Even the data frame is cached I can't see the charts. Is there a way to save the charts generated with %%brunel and reuse on notebook when open automatically on other jupyter session without run again?
Graham Wills
@grahamwills
Hey mahesh, Dan's the Jupiter expert on our team, but he's taking a well-earned vacation at the moment, so let me try and help. I think with the current way the notebook works, it does not keep the generated charts in the notebook -- they are dynamically generated and so do not stick around between runs. This is something others have asked about (and also the related question of a pure HTML export) so we are looking into it. But for now, I think the answer is that cell does have to be re-run.
Would it be of any value to have an option to generate a chart as a pure image, which would be saved in the system? And then maybe an "activate" button for it? Sort of a workaround -- just thinking out loud here.
mahesh2013
@mahesh2013
Thanks Graham, Actually using local Jupyter instance I can open the saved jypyter notebooks and all Brunel charts persists and can open without rerun. I have problem only on Bluemix Jupyter notebook instance where I can't persist the Brunel charts. Whenever I open the saved jupyter notebook I need to rerun the notebook in order to display the Brunel charts. I don't think it's useful to save as pure image. Just how it works in local jupyter I expect to work on Bluemix. In both cases I use "%AddJar -magic http://www.brunelvis.org/jar/spark-kernel-brunel-all-1.0.jar" to import the Brunel library into notebook.
svenhafeneger
@svenhafeneger
Hi @mahesh2013, we have found the root cause for the persistence problem of the plots on Bluemix. The fix is on its way.
Graham Wills
@grahamwills
Thanks Sven!
tigerquoll
@tigerquoll
Heh guys, have you tested the your spark-kernel extension against the latest toree kernel? Having trouble getting toree to initialise the brunel module - the toree guys say they've recently put in a new plugin extension system which might be the reason.
Also - thanks for the fixes on the js locations - should make life a lot easier.
Dan Rope
@danrope
Thanks! We definitely will look into this asap.
Dan Rope
@danrope
@tigerquoll Fixed on develop. This fix should be in Brunel 1.2. We will post a test .jar prior to confirm.
tigerquoll
@tigerquoll
@danrope Thanks for that. Before I lost access to my Brunel (v1.0) I was trying to troubleshoot an issue with the relative sizes of chords in a Brunel produced chord chart being a bit off. I'm not really conversant in D3 or javascript for that matter so was wondering if you could quickly check Brunel's rendering logic for chord charts?
Dan Rope
@danrope
@tigerquoll I don't see anything obvious. Do you have a CSV we can use to take a look? If you can upload data, you can also use our app here to try: http://brunel.mybluemix.net/gallery_app/renderer
tigerquoll
@tigerquoll
ok, thanks will have a play around.
tigerquoll
@tigerquoll
I was free exploring a live dataset at the time, so difficult to recreate.
tigerquoll
@tigerquoll
The width of the chords - what is the formular used to create the various widths?
George Lucchese
@eyce9000
Has anyone had issues with brunel not working correctly in a python 3 jupyter notebook?
I run an expression and get a blank output, along with some requirejs errors in my browser console
blob
Dan Rope
@danrope
This can happen if you have upgraded Brunel and you open a notebook that was built using the older version. If this is the case, the solution is usually to clear all cells in the notebook, save the notebook, restart the kernel, and finally, reload the browser page.
George Lucchese
@eyce9000
Is there any issue with using brunel / python on jupyterhub?
I am getting 404's trying to get this resource /hub/nbextensions/brunel_ext/brunel.controls.2.0.min.js?v=20161018171953
and a few others like it
Dan Rope
@danrope
Yes, there could be an issue with the location of the JS files. Do you have control over the environment here? If so, see this git issue to see how you can use an env variable to control where Brunel loads JS from: Brunel-Visualization/Brunel#77
Note, future Brunel versions will switch to presuming the brunelvis.org location for JS to avoid these kinds of problems.
George Lucchese
@eyce9000
cool
George Lucchese
@eyce9000
Hi @danrope is there going to be a permanent URL for the python-referenced .js and .css resources?
Just tried using raw github just for the heck of it, but it didnt work because the mime type is text/plain
George Lucchese
@eyce9000

I ended up doing a workaround of using an nginx proxy in front of jupyterhub, and having it serve all requests to /hub/nbextensions to the on-disk location:

location /hub/nbextensions {
        alias /usr/local/share/jupyter/nbextensions;
}

Using this method means I dont have to change the environment variables

Dan Rope
@danrope
@eyce9000 Yes. (Sorry for delayed response). We will serve the JS at https://brunelvis.org/js. That location should work for python & spark for Brunel 2.0.
andreaengdahl
@andreaengdahl
Hello, I have a problem with jupyter and brunel.
When running the example of the cars and try to graph, I get the following error:
Javascript error adding output!
SyntaxError: Octal literals are not allowed in strict mode.
See your browser Javascript console for more details.

Could you help me please?
andreaengdahl
@andreaengdahl
problem.jpg
Dan Rope
@danrope
@andreaengdahl apologies for the delayed response. My guess is this is a symptom of: Brunel-Visualization/Brunel#193 . If so, the workaround is to use the english locale on the system that hosts the notebook.
varsha nagaraj
@varshanagraj_twitter

how can i display brunel graph from within my python function? for eg: import time
import brunel

def hello():
biglist = test()
%%brunel data('biglist') x(created_at) y(servicename) color(type:[red,green]) tooltip(created_at,job_name,servicename,type) :: width=1400, height=600

hello()

Jasper Aorangi
@spmp
How can we export images from the notebook please?
Anton Kulaga
@antonkulaga
I see that all interactive examples are broken on the website :(
Anton Kulaga
@antonkulaga
Brunel-Visualization/Brunel#309
I also see it tries to put js direclty to the cell that is prohibited by jupyter security rules
Pat
@magicalo_gitlab
Does anyone know what this error means: AttributeError: module 'brunel' has no attribute 'brunel_util'?
I am using JupyterHub and Python 3