Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 26 2017 18:46
    @mathisonian banned @krpx_division_twitter
  • Sep 22 2017 18:27
    @rreusser banned @krpx_group_twitter
Matthew Conlen
@mathisonian
yeah i think yours is one of the more latex-heavy @suhr
trying to make sure there are work arounds and fixes as possible. really appreciate that you are posting bug reports since it would inevitably effect others
glad to hear @nsteins!
Saurabh Shetty
@rollaball

I get the following error in idyll-cli tests when I try to import csv-parse in the idyll-document.

FAIL  test/minified-project/test.js (31.736s)
 ● Console

   console.error src/index.js:186
     JS_Parse_Error {
       message: 'Unexpected character \'`\'',
       filename: 0,
       line: 8335,
       col: 18,
       pos: 277454 }

Any idea why this might be happening?

Matthew Conlen
@mathisonian
@rollaball it seems likely that the minifier is choking on ES6 code? what happens if you update the test to have minify set to false when idyll is initialized?
we don't run the deps through the transpiler, so if dependencies contain some code that the minifier doesn't like this can happen
as the csv-parser was only running under node (not in the browser) before, we weren't hitting this

from csv-parser docs

The source code uses modern JavaScript features and run natively in Node 7.6+. For older browsers or older versions of Node, use the modules inside "./lib/es5", i.e. require("csv-parse") will become require("csv-parse/lib/es5").

another option would be to upgrade to a better minifier that understands ES6
Matthew Conlen
@mathisonian
i think https://github.com/terser-js/terser may be a good option if we want to go down that road
Saurabh Shetty
@rollaball
Thanks!! Yea, setting minify to false does not give this error.
Will look into this.
Kris Heim
@krisheim_twitter
I'm working on integrating idyll-document and idyll-components into a react application, but am having difficulty using Scroller and Graphic. These two components aren't exported by idyll-components. Is this on purpose? Should I be integrating them using some other means? Thanks for the help.
Matthew Conlen
@mathisonian
hey @krisheim_twitter - that is not on purpose. i'll add them to the export so you can grab them from the package.
Kris Heim
@krisheim_twitter
Great, thanks. I pulled them from the library so I could do some testing and have found that the Scroller doesn't seem to work (as a test I'm using the scaffolding-interactives example so I have a working example). It looks like some recent work has been done to update how scrollama is being used. When I backed up to code from June 27th all was good. Is the Scroller currently in a state of flux?
Matthew Conlen
@mathisonian
hm i would expect the latest to work as expected. could you post an issue or example of how its breaking?
Kris Heim
@krisheim_twitter
I can do that in a bit.
Matthew Conlen
@mathisonian
thanks!
Kris Heim
@krisheim_twitter
Found my issue, I was comparing with the on-line scaffolding-interactives example that was
Whoops, the older example was swapping the position property between 'fixed' and 'absolute'. The new code uses position: 'sticky'. I was missing that from my styles.
Сухарик
@suhr
How do I install Idyll from git?
Matthew Conlen
@mathisonian
@suhr you'd have to follow the instructions in https://github.com/idyll-lang/idyll/blob/master/CONTRIBUTING.md to link against the git repo locally, since its a monorepo i don't think there's a one liner to install w npm from git
i've just pushed a new version to NPM which has the latest changes related to the equation rendering issues
Сухарик
@suhr
Thanks.
Matthew Conlen
@mathisonian
@krisheim_twitter is there something we should update in the online example?
i opened a PR to add the missing exports, this will go out in the next release idyll-lang/idyll#581
Venkat Krishnamurthy
@niviksha_twitter

hello! i'm new here...so just a brief intro before a question. i work at omnisci (formerly mapd), where we've built a GPU-accelerated SQL db/engine (the core of which is open source) that can power interactive data viz at scale.

we've been working within the vega/vl ecosystem a fair bit particularly via the pydata stack with altair (and also use vega in somewhat modded form under our server-side rendering of large geo datasets). we have a d3-based charting lib (i dont know a whole lot yet about it)

the reason i'm dropping in here is that i'm very interested in seeing how we could leverage our javascript with something like idyll so an idyll author can embed vega-lite charts on very large datasets

wondering if this may be of any interest, and the right forum to get connected on - we'd do this entirely with our open source core , so no proprietary bits involved
Matthew Conlen
@mathisonian
hey @niviksha_twitter that sounds super cool! the omnisci/mapd tech is impressive
i'd be happy to talk through what would make the most sense for something like that with idyll
we have existing examples with standard vega/vl but with this I'm guessing they need to hit an omnisci endpoint to render the chart?
Venkat Krishnamurthy
@niviksha_twitter
yes, it's definitely a distinct service, so one my concerns was would it make the set up too complicated
but we've made it super easy to interface with
our whole jupyterlab/ibis/altair set up works like this - hits a remote endpoint via our python API, but that in turn wraps a thrift API that's at the foundation of all of it
Matthew Conlen
@mathisonian
i guess it depends on the workflow that you're imagining
it seems relatively straightforward to set up a new OmniVegaLite component that users can install and point to the correct endpoint
but i guess the question is how much do you want it to be driven by the python code vs keeping these as separate pieces
Venkat Krishnamurthy
@niviksha_twitter
we could start with the OmniVegaLite component
the python code is built out, but we do have https://github.com/omnisci/mapd3 and our js connector https://github.com/omnisci/mapd-connector on the js side
sorry i'm totally not a js person, so i'll ask one of our engineers to weigh in if this is interesting @mathisonian
Matthew Conlen
@mathisonian
@niviksha_twitter i think starting with that component as proof of concept and going from there makes a lot of sense
definitely interesting!
if its easier to discuss over email / hangouts i'm mconlen@cs.washington.edu
Venkat Krishnamurthy
@niviksha_twitter
i'll reach out! thanks so much @mathisonian !
BTW we're good friends with Dominik, who's worked a fair bit with us in the recent past
Matthew Conlen
@mathisonian
:grinning: awesome thanks @niviksha_twitter
Kris Sankaran
@krisrs1128
Is there a way to show a custom D3 component within a scroller? I want to have scroller commentary about a few distinct visualizations -- I was hoping to do something like [https://idyll-lang.org/gallery/stacking-scroller-components], but for visualizations, rather than [Graphics/]. When I try mimicking that though, I don't see the component being added.
Matthew Conlen
@mathisonian
hey @krisrs1128 you can put them inside the [Graphic /] tag
e.g.
[var name:"step"  value:0 /]
[Scroller currentStep:step ]
  [Graphic]
    [CustomD3Component   /]
  [/Graphic]

  [Step]
    ...
  [/Step]
[/Scroller]
if you have a link to what you were trying i can look and see why it wasn't being added