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

magic parser doesn't process dictionaries with spaces after ":" #874

Closed
RafalSkolasinski opened this issue Sep 19, 2016 · 2 comments
Closed

Comments

@RafalSkolasinski
Copy link

RafalSkolasinski commented Sep 19, 2016

When setting options via magic parser contains dictionary it fails to process whenever there is space after a colon. Please see following code.

Cell 1 (imports)

import numpy as np
import holoviews as hv
hv.notebook_extension()

Cell 2 (doesn't respect fontsize)

%%opts Image [fontsize={'ticks': 50}]
hv.Image(np.random.rand(10, 10))

Cell 3 (does respect fontsize)

%%opts Image [fontsize={'ticks':50}]
hv.Image(np.random.rand(10, 10))

Note:
when working locally with the notebook I got a warning message

WARNING:root:Warning: Ignoring keyword pair that fails to evaluate: 'fontsize={'ticks':,50}'

but when working via jupyterhub there is no warning.

@jlstevens
Copy link
Contributor

Thanks for reporting this!

I believe this issue is related to #270.

@philippjfr
Copy link
Member

Yes, this a duplicate of #270. Closing.

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

No branches or pull requests

3 participants