Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result object always returned #7

Closed
lambdamusic opened this issue Mar 21, 2019 · 1 comment
Closed

Result object always returned #7

lambdamusic opened this issue Mar 21, 2019 · 1 comment

Comments

@lambdamusic
Copy link
Member

lambdamusic commented Mar 21, 2019

From user

Smaller niggle:

res = dsl.query('search publications where doi = "10.1007/978-0-387-79061-9" return publications[times_cited]')

Then there should ideally not be any text written to the console. However I get
<dimcli.dimensions.Result object>

Not a biggy but annoying if you want to query DSL several times and get a clean output. Not sure if this is a Python problem. However I have never seen this with other calls of a method

@lambdamusic
Copy link
Member Author

lambdamusic commented Mar 21, 2019

One way at the moment is to do build the Dsl objects like this:

dsl = dimcli.Dsl(show_results=False)

The value is normally set to True to support better Jupyter, where the results is automatically transformed into a handy interactive JSON-widget. (see source code)

I wonder if there's a way to detect the Jupyter environment some other way...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant