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

Traitlets 4 vs 5 changes defaults in message spec #3110

Closed
wants to merge 1 commit into from

Conversation

jasongrout
Copy link
Member

We get these by these commands from the release docs:

python ./packages/schema/generate-spec.py -f json-pretty > packages/schema/jupyterwidgetmodels.latest.json
python ./packages/schema/generate-spec.py -f markdown > packages/schema/jupyterwidgetmodels.latest.md

I noticed that these gave updates that were not already in the files. It seems that our updated packages now give updated formatting to the json, so it's probably more instructive to look at the two small changes in the .md file.

We get these by these commands from the release docs:

python ./packages/schema/generate-spec.py -f json-pretty > packages/schema/jupyterwidgetmodels.latest.json
python ./packages/schema/generate-spec.py -f markdown > packages/schema/jupyterwidgetmodels.latest.md
@jasongrout jasongrout added this to the 8.0 milestone Feb 10, 2021
@jasongrout
Copy link
Member Author

It looks like these differences are caused by traitlets 4 vs traitlets 5. That is something we need to look into, but not a blocker for an alpha release, I think.

@jasongrout jasongrout marked this pull request as draft February 10, 2021 21:54
@jasongrout
Copy link
Member Author

Converting to draft since this needs more discussion before merging (or closing)

@jasongrout jasongrout changed the title Updates spec files Traitlets 4 vs 5 changes defaults in message spec Feb 12, 2021
@SylvainCorlay
Copy link
Member

Traitlets 4:
Screenshot from 2021-03-18 15-58-27

Traitlets 5:
Screenshot from 2021-03-18 16-03-35

@vidartf
Copy link
Member

vidartf commented Jun 8, 2021

Note that:

>>> traitlets.__version__
'5.0.5'
>>> Tuple().make_dynamic_default()
()
>>> Tuple(traitlets.Unicode()).make_dynamic_default()
<blank = None>

@vidartf
Copy link
Member

vidartf commented Aug 2, 2021

I added a fix for this to #3174 (since it is painful to work with specs on Windows without it).

@jasongrout jasongrout closed this Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants