-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Quick feedback on 3.0.0b8 #9044
Comments
Shouldn't "jupyterlab-widgets-1.0.0a2" be a dependancy of Jupyterlab-3.0.0b8 ? |
No, we haven't decided that widgets is a dependency of jlab. |
Welp, that's working, though I haven't gotten up to porting any widgets, the real proof of the pudding! On the extension DX front, in the context of porting jupyterlab_graphviz (which has an extension, a mimextension and a codemirror mode)
|
Thanks. Good point about codemirror. We really need a better story about interacting with codemirror in general - we keep working around that it is not exposed to extensions, nominally being behind an abstraction layer that people keep wanting to break through. We may want to expose codemirror as a singleton shared package in core JupyterLab. This would be one more step to exposing codemirror as the real editor. Or perhaps the codemirror extension should just expose the global codemirror object it uses through the extension system, and extensions that want to do stuff with codemirror can just optionally depend on that. |
@bollwyvl - do you want to experiment with exporting THE codemirror from the codemirror extension? Perhaps create a new tokens.ts file in the codemirror package, then a new plugin in the codemirror-extension package that provides the token to the system. The token can provide the right CodeMirror object. |
On the categories issue, here is what the modal command palette looks like with categories: If you hover over a category, a filter icon appears off to the right, but clicking on it does not filter, instead it dismisses the floating window. Here is what it looks like without categories. Notice it is much denser, and the command names still seem to be pretty descriptive: I initially thought it would be bad to lose those categories, but now it does seem better to me that the categories are hidden. Note that the category hiding is done with CSS. When I talked with Brian about it, he suggested that we have the category as a prefix on the command, but that would also require more fundamental changes in Lumino, so having a prefix isn't a possibility before the 3.0 release. |
PR up: |
Jason, thanks for playing with the command palette and categories. I found
the same thing when playing around with it. I do think that post 3.0 we
should add inline categories though (let's open an issue to track this).
…On Wed, Sep 23, 2020 at 6:14 PM Nicholas Bollweg ***@***.***> wrote:
PR up:
#9067 <#9067>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#9044 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGXUE2KHVUS236BZRGWN3SHKMPPANCNFSM4RSZAIBA>
.
--
Brian E. Granger
Principal Technical Program Manager, AWS AI Platform (brgrange@amazon.com)
On Leave - Professor of Physics and Data Science, Cal Poly
@ellisonbg on GitHub
|
Are there still categories when it is in the sidebar? |
The underlying data model and API is the same. The sidebar version does
still have the categories.
…On Wed, Sep 23, 2020 at 7:20 PM Jason Grout ***@***.***> wrote:
Are there still categories when it is in the sidebar?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9044 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGXUAT3MFXHLWABBLAQFTSHKUFVANCNFSM4RSZAIBA>
.
--
Brian E. Granger
Principal Technical Program Manager, AWS AI Platform (brgrange@amazon.com)
On Leave - Professor of Physics and Data Science, Cal Poly
@ellisonbg on GitHub
|
The CodeMirror blocker (#9067) is cleared up as of The border on top of the current menus is 👍 Some of the other points from #9044 (comment) (pain of debugging minified lab assets, etc.) are still there, but not stopping development. |
That's so great to hear!
Cool!
Yeah, that's a longer-term issue to figure out. Make sure you are compiling extensions in |
Accidentally closed - but let us know if everything is addressed and we can close anyway. |
As you might imagine, you aren't the only one wanting to add modes to CodeMirror. Do you think you could contribute a short example to the extension example repo showing how to add a codemirror mode? https://github.com/jupyterlab/extension-examples |
Well, lazily, both the shortest and potentially most-reusable example would be a simple mode... i find if I'm stuck having to do a quick DSL mode, it can be easier to get started with that approach (e.g. Learn some regex, off I go!) than, say, even one of the simpler imperative modes like toml. It's also very nice for using named embedded modes. So I'd like to help example-readers-and-maybe-copy-pasters to also be lazier. Here's my immediate laziness: to get that screenshot with the working mode, I presently I'm having to do some rather boorish stuff: import * as simpleMode from 'codemirror/addon/mode/simple';
import * as MyCodeMirror from 'codemirror';
export function defineSomeMode(TheCodeMirror: any) {
console.warn(MyCodeMirror.modeInfo); // usually 156
console.warn(TheCodeMirror.modeInfo); // usually 158, because ipython(gfm)
TheCodeMirror.simpleMode = (MyCodeMirror as any).simpleMode.bind(TheCodeMirror);
TheCodeMirror.defineMode(MODE_NAME, function(config: any) {
return (MyCodeMirror as any).simpleMode.apply(TheCodeMirror, [config, STATES]);
});
TheCodeMirror.defineMIME(t, MODE_NAME);
TheCodeMirror.modeInfo.push({
ext: EXTENSIONS,
mime: MIME_TYPE,
mode: MODE_NAME,
name: MODE_NAME
});
} Anyhow, though a number of addons are added, already, I usually don't want to be that guy that pushes for a new dependency just to scratch my itch. Even if we add Luckily(!), a quick scan of Anyhow, even if we don't pick up #9123, i can still take a look at an example! |
yeah, sorry for the poorly structured issue on my part! I'll go ahead and close this. I made a more focused issue (#9124) for the dangling CM parts. |
@bollwyvl this PR would switch the default |
Per @jasongrout 's request, here are some quick reactions from trying out bet8 on binder originally added to gitter
The text was updated successfully, but these errors were encountered: