-
-
Notifications
You must be signed in to change notification settings - Fork 550
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
feat: launch by kernelspec #1264
Conversation
Current coverage is 91.76% (diff: 89.65%)@@ master #1264 diff @@
==========================================
Files 57 57
Lines 1482 1494 +12
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 1361 1371 +10
- Misses 121 123 +2
Partials 0 0
|
This PR is excellent proof of missing tests for main. 😉 |
I'd be happy to start chipping away on some tests for main, if someone wouldn't mind giving me a little guidance on where to start. |
fe84c43
to
fe30524
Compare
I'm going to break so many things right now that I might as well make a testing harness for some of what's in main here. The main thing is that much of main can be tested just like the notebook. Try to find functions that don't require the filesystem or electron APIs (there are a few I know of) and you'll be off to a start. |
I c wut u did thar |
1dea7cd
to
a62b227
Compare
418d88b
to
cd1fce5
Compare
Ok this is now "ready". By that I mean that it's ready for me to update tests now that I have it working. |
This still fails conformance tests, I'll come back to it later. |
Beginning efforts to make it so we can launch by kernelspec rather than kernelspec name. This is to enable conda environments, an embedded JS kernel, and make it easier to do remote kernels by refactoring how we launch.
6f94f41
to
1060dbd
Compare
Rebased, going to see what likely lint errors exist now. |
Sure enough, this PR still has an issue with conformance:
I'll see if I can iron that out. Otherwise, kernels are executing just fine. |
Finally finished off this branch -- the kernel info is set properly in the document now. It's very ready for review. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per advice in redux-observable/redux-observable#108,
ActionsObservable.of(executeCell('id', 'source')));
executeCellEpic(action$, store)
.toArray()
.subscribe(actions => {
expect(actions).to.deep.equal([
kernelNotConnected() // whatever action creators
]);
done();
});
});
is a more succinct pattern to follow in the future.
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Beginning efforts to make it so we can launch by kernelspec rather than
kernelspec name. This is to enable conda environments, an embedded JS kernel,
and make it easier to do remote kernels by refactoring how we launch.