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

Make plot_config and choice of renderer a global config #129

Closed
dorisjlee opened this issue Oct 30, 2020 · 3 comments
Closed

Make plot_config and choice of renderer a global config #129

dorisjlee opened this issue Oct 30, 2020 · 3 comments
Assignees
Labels
easy Easy to fix; Good issues for newcomers

Comments

@dorisjlee
Copy link
Member

As described here,plot_config is used for setting the plotting style for the rendered visualization. Currently, this is a property that is tied with the dataframe, we should extend this to make this a global config setting (e.g., lux.config.plot_setting). The configuration is dependent on the choice of renderer too, so it makes sense to have this as a global setting.

@dorisjlee dorisjlee added the easy Easy to fix; Good issues for newcomers label Oct 30, 2020
@dorisjlee dorisjlee changed the title Make plot_config a global config Make plot_config and choice of renderer a global config Nov 10, 2020
@dorisjlee
Copy link
Member Author

@jinimukh: Before we close this issue, could we add some documentation for this?

@Chandrachud23
Copy link

# Collecting basic usage statistics for Lux
lux.logger = True # Remove this line if you do not want your interactions recorded
df_train = pd.read_csv('../input/jane-street-market-prediction/train.csv')
lux.config.default_display = "lux"
df_train
So while executing this, I found this error that module 'lux' has no attribute 'config'. Can anyone suggest what to do?

@dorisjlee
Copy link
Member Author

Hi @Chandrachud23 , lux.config is supported only the most recent version of Lux.You can install the latest version by:

pip install lux-api==0.2.1
jupyter nbextension install --py luxwidget
jupyter nbextension enable --py luxwidget

Note that you may have to restart your jupyter notebook after doing this so that the change is reflected.

Note that the lux.config and lux.logger are optional commands. Lux should work as expected if you simply inputted:

df_train = pd.read_csv('../input/jane-street-market-prediction/train.csv')
df_train

Let us know if you are still experiencing problems with this after the suggested fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Easy to fix; Good issues for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants