Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

WIP: Update to Jupyterlab 0.1.3 #275

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jhpedemonte
Copy link
Collaborator

@jhpedemonte jhpedemonte commented Jul 28, 2016

Needed to properly build Jupyterlab 0.1.2

Tasks:

  • Update our code to latest API changes in Jupyterlab (renderers, RenderMime, etc)
  • Update to jupyter-js-services v0.17.0 (what is being used by Jupyterlab)
  • [ ] Padding (in test_padding) seems to be off again.
  • Plotting libs broken
  • CodeMirror 5.18.0 breaks build.

Needed to properly build Jupyterlab 0.1.2

(c) Copyright IBM Corp. 2016
@jhpedemonte
Copy link
Collaborator Author

Making this WIP. They changed rendermime again. Yay!

(c) Copyright IBM Corp. 2016
@jhpedemonte jhpedemonte changed the title Adds missing loader for webpack WIP: Adds missing loader for webpack Jul 28, 2016
@jhpedemonte
Copy link
Collaborator Author

Everything is working with this patch except for matplotlib (test_layout & test_plotting_libs). Looks like messages trying to use matplotlib are being handled before register_target('matplotlib', ...) gets invoked.

@jhpedemonte
Copy link
Collaborator Author

@blink1073 @jasongrout:

I'm getting Error: Object 'matplotlib' not found in registry when building against Jupyterlab 0.1.2 (everything works fine with v0.1.1). I never see call to register_target('matplotlib') before this error. Looks like perhaps a timing issue.

I notice that in src/notebook/output-area/widget.ts, the call to rendermime.render is not async. Could this be causing issue? Is the matplotlib JS not added to the DOM before handling incoming matplotlib comm messages?

@blink1073
Copy link

This is using %matplotlib notebook? I would not have expected that to work at all yet.

@jhpedemonte
Copy link
Collaborator Author

It's been working up until now. We did have to add some shim code to make it all work, though.

@blink1073
Copy link

I confess I haven't dealt much with the ipywidgets end of things. Jason has already left for week-long holiday and I am leaving tomorrow for a week as well. I'll see if I can figure something out this afternoon.

@blink1073
Copy link

Also, we changed rendermime again in jupyterlab/jupyterlab#560 (not released yet).

@blink1073
Copy link

FYI @jasongrout, here's another example where we're not properly following semver, since this library depends on jupyterlab, we should be making minor releases, not patch releases.

@jhpedemonte
Copy link
Collaborator Author

OK. I think I'll just pin Jupyterlab to v0.1.1 for now, so we can continue working. And I'll continue investigation of v0.1.2+.

@blink1073
Copy link

Sounds good.

Needed to properly build Jupyterlab 0.1.2

(c) Copyright IBM Corp. 2016
(c) Copyright IBM Corp. 2016
This version of Jupyterlab fixes issues we were seeing with matplotlib

(c) Copyright IBM Corp. 2016
@jhpedemonte jhpedemonte force-pushed the fix-jupyterlab-build branch from 7afdf1a to 3cd3921 Compare August 2, 2016 14:50
@jhpedemonte
Copy link
Collaborator Author

Got it working. Looks like the fixes in jupyterlab/jupyterlab#560 (specifically the commit Make rendering synchronous and cleanup) fixes the issues I was seeing. I updated this PR to work against v0.1.3 of Jupyterlab (not yet release).

@jhpedemonte jhpedemonte changed the title WIP: Adds missing loader for webpack WIP: Update to Jupyterlab 0.1.3 Aug 2, 2016
@blink1073
Copy link

Great, glad you got it sorted. Hopefully we don't have to change this part of the code base too much anymore. ;)

jhpedemonte and others added 3 commits August 2, 2016 11:08
Matches what latest Jupyterlab is using

(c) Copyright IBM Corp. 2016
@jhpedemonte
Copy link
Collaborator Author

Updated to use Jupyterlab 0.2.0. Ran into codemirror/codemirror5#4190, which breaks our build. Got past it by temporarily building with CodeMirror 5.17.0.

Plotting libs are broken once again (yay!) but padding seems to be fine now.

(c) Copyright IBM Corp. 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants