by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Michał Krassowski
@krassowski
I see, thank you! Should it be a part of the cookiecutter and the developer documentation?
Jason Grout
@jasongrout
It's a nice convenience, though not strictly necessary
Tingkai Liu
@TK-21st

Can't wait for module federation to happen!!!

Quick question, can I use my custom icon when adding custom extension settings? When I'm editing my settings schema I see that there's a way to set the icon of the section that appears under the Advanced Settings section as follows:

{
  "jupyter.lab.setting-icon-class": "jp-NotebookIcon",
  "jupyter.lab.setting-icon-label": "Notebook",
  "title": "Notebook",
   ...
}

What todo I'm referring to a custom icon that I'm loading as in https://github.com/jupyterlab/jupyterlab/blob/master/packages/ui-components/README.md#how-to-create-your-own-custom-labicon?

Jason Grout
@jasongrout
Huh, listening to some talks from juliacon. One talk right now is that the Juno julia ide, which is based on atom, is going into maintenance mode while they switch and join forces to develop on the julia vs code plugin
They said that basically, atom is dead, especially since Microsoft acquired GitHub, and vs code is the future instead of atom
Tingkai Liu
@TK-21st
This message was deleted
Jason Grout
@jasongrout
so instead they are focusing their efforts on the julia language server, etc.
talk is going on right now: https://live.juliacon.org/live
Jason Grout
@jasongrout
one of the authors says "this integrates with the vs code notebook experience and the other features in vs code for julia, so at the end of the day, I think this will be the richest notebook experience for Julia" (rough quote/somewhat paraphrase...)
It looks like they are making a ".jlnb" notebook file format (not settled yet) that is definitely not JSON (currently markdown file with parallel html output)
blois
@blois
I think a parallel file for outputs is a good approach when rich language features are needed for the source code.
Such as enabling linting, formatting and static analysis.
Jason Grout
@jasongrout
+1. Just bringing it up here (and really should bring it up in the larger Jupyter community) to see if we can also move forward so there is some widely accepted standardization rather than fracturing formats
There have been discussions (for a long time, then again recently) about a parallel notebook format
Luciano Resende
@lresende
sorry, but I won’t be able to join the dev meeting today… I plan to create a summary of the discussion on the team-compass and create a meeting more focused on that discusion.
Yes, fractioning the community is something that we should avoid
blois
@blois
I had chimed in on the file format thread (https://discourse.jupyter.org/t/jupyter-and-github-alternative-file-format/4972/98?u=blois)- improving support for native source code seems like the top priority, anything else is just fragmentation and distraction. IMHO.
Jason Grout
@jasongrout
Friday at 9am PT, we'll be having a demo of a project from Siemens building on JupyterLab to do Generative Engineering, on our normal weekly meeting channel
T. George
@tgeorgeux
That's awesome! Did we decide a time to loop back on 3.0 release stuff as well?
Steven Silvester
@blink1073
Brian is driving, and had to drop, will have to sync up with him on scheduling
Chris Holdgraf
@choldgraf
hey all - is there a jupyterlab logo?
Steven Silvester
@blink1073
ye
yes, but I'm afk and I can't remember where it is located
Steven Silvester
@blink1073
it is the icon for the GitHub org
Chris Holdgraf
@choldgraf
ah ok, thanks :+1:
Chris Holdgraf
@choldgraf
@jasongrout I added a note about the .jlnb format here in case others in the community are interested: https://discourse.jupyter.org/t/julia-community-is-creating-a-new-notebook-format/5422
Afshin Taylor Darian
@afshin
@/all If anyone has recent experience merging an external plugin into core, I would appreciate some help. I am referring to this: jupyterlab/jupyterlab#8747
Jason Grout
@jasongrout
whew!
are there specific questions, or just general review requested?
We recently merged the toc extension, for example
Afshin Taylor Darian
@afshin
I am stuck
  1. Should I publish the alpha versions of @jupyterlab/debugger and @jupyterlab/debugger-extension?
  2. Am I overlooking some other place I need to add these two packages?
Jason Grout
@jasongrout
(BTW, here is an excellent talk in JuliaCon about a reactive notebook package like ObservableHQ, but for Julia: https://live.juliacon.org/talk/WNBYW8)
Afshin Taylor Darian
@afshin
The other extensions appear to have 3.0.0-alpha.4 published, so that makes me think I should publish these two packages with that version number. But I imagine there's probably something else I'm still missing
Afshin Taylor Darian
@afshin
I get this error but it does not kill the build ...
$ jlpm run build:dev
$ jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build
$ node scripts/ensure-buildutils.js && node buildutils/lib/ensure-repo.js
(node:74015) UnhandledPromiseRejectionWarning: PackageNotFoundError: Package `!!to-string-loader!css-loader!..` could not be found
    at packageJson (/Users/af/Code/jupyterlab/node_modules/package-json/index.js:74:10)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:74015) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:74015) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Then I get this error and it does kill the build:
$ cd packages/metapackage && jlpm run build
$ tsc -b
$ webpack
(node:74141) [DEP_WEBPACK_MAIN_TEMPLATE_RENDER_MANIFEST] DeprecationWarning: MainTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)
(node:74141) [DEP_WEBPACK_CHUNK_TEMPLATE_RENDER_MANIFEST] DeprecationWarning: ChunkTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)
(node:74141) [DEP_WEBPACK_MAIN_TEMPLATE_HASH_FOR_CHUNK] DeprecationWarning: MainTemplate.hooks.hashForChunk is deprecated (use JavascriptModulesPlugin.getCompilationHooks().chunkHash instead)
ModuleNotFoundError: Module not found: Error: Can't resolve '@jupyterlab/debugger-extension/' in '/Users/af/Code/jupyterlab/dev_mode/static'
    at /Users/af/Code/jupyterlab/node_modules/webpack/lib/Compilation.js:1456:28
    at /Users/af/Code/jupyterlab/node_modules/webpack/lib/NormalModuleFactory.js:638:13
    at eval (eval at create (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:1)
    at /Users/af/Code/jupyterlab/node_modules/webpack/lib/NormalModuleFactory.js:229:22
    at eval (eval at create (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
    at /Users/af/Code/jupyterlab/node_modules/webpack/lib/NormalModuleFactory.js:352:22
    at /Users/af/Code/jupyterlab/node_modules/webpack/lib/NormalModuleFactory.js:114:11
    at /Users/af/Code/jupyterlab/node_modules/webpack/lib/NormalModuleFactory.js:567:24
    at finishWithoutResolve (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:259:11)
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:325:15
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:373:5
    at eval (eval at create (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:373:5
    at eval (eval at create (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:87:43
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:373:5
    at eval (eval at create (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:26:1)
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/ModuleKindPlugin.js:40:40
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:373:5
    at eval (eval at create (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
    at innerCallback (/Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/forEachBail.js:34:39)
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/ModulesInHierachicDirectoriesPlugin.js:72:16
    at /Users/af/Code/jupyterlab/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:101:15
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
resolve '@jupyterlab/debugger-extension/' in '/Users/af/Code/jupyterlab/dev_mode/static'
  Parsed request is a module
  Parsed request is a directory
  using description file: /Users/af/Code/jupyterlab/dev_mode/static/package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /Users/af/Code/jupyterlab/dev_mode/static/node_modules doesn't exist or is not a directory
      looking for modules in /Users/af/Code/jupyterlab/dev_mode/node_modules
        /Users/af/Code/jupyterlab/dev_mode/node_modules/@jupyterlab/debugger-extension doesn't exist
      looking for modules in /Users/af/Code/jupyterlab/node_modules
        existing directory /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension
          using description file: /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/package.json (relative path: .)
            using description file: /Users/af/Code/jupyterlab/package.json (relative path: ./node_modules/@jupyterlab/debugger-extension)
              as directory
                existing directory /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension
                  using description file: /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/package.json (relative path: .)
                    use ./lib/index.js from main in package.json
                      using description file: /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/package.json (relative path: ./lib/index.js)
                        no extension
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/lib/index.js doesn't exist
                        .js
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/lib/index.js.js doesn't exist
                        .json
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/lib/index.js.json doesn't exist
                        .wasm
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/lib/index.js.wasm doesn't exist
                        as directory
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/lib/index.js doesn't exist
                    using path: /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/index
                      using description file: /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/package.json (relative path: ./index)
                        no extension
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/index doesn't exist
                        .js
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/index.js doesn't exist
                        .json
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/index.json doesn't exist
                        .wasm
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/af/Code/jupyterlab/node_modules/@jupyterlab/debugger-extension/index.wasm doesn't exist
      /Users/af/Code/node_modules doesn't exist or is not a directory
      /Users/af/node_modules doesn't exist or is not a directory
      /Users/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
Afshin Taylor Darian
@afshin
I'll be on the main Zoom channel. Steve is joining too
Jason Grout
@jasongrout
Reminder: The Siemens application demo (built on jlab) starts in 50 minutes on the jovyan channel
9 replies
Jason Grout
@jasongrout
@/all - demo starting on the jovyan channel now: https://zoom.us/my/jovyan
Tradefeedr
@tradefeedr_twitter
hi all - quick question: I create an output view for a jupyter widget and then change workspace. If I switch back, the notebook has to be run again to show the results. Anyway to have this automatically done
Eric Charles
@echarles
Trying to find back the (client or server) code portion where the /lab/workspaces/auto-x?clone URL is created and invoked… Any pointer to help me debug the last mile for jlab on jserver appreciated.
Afshin Taylor Darian
@afshin

@echarles
The clone param can be added by an end user, but for auto workspaces (in master, not in @ellisonbg's branch) the clone parameter is added here before redirecting: https://github.com/jupyterlab/jupyterlab/blob/master/packages/apputils-extension/src/index.ts#L127-L131

If the clone parameter exists when the page is loaded then that workspace name becomes the source we fetch from the workspaces REST end point: https://github.com/jupyterlab/jupyterlab/blob/master/packages/apputils-extension/src/index.ts#L323-L329

So in your URL, that means the source is actually the default workspace because clone is not populated in the URL but it does exist.

Then when the workspace has been fetched, it is saved into the new workspace name (in your example that is auto-x) here: https://github.com/jupyterlab/jupyterlab/blob/master/packages/apputils-extension/src/index.ts#L361

and that save.invoke is running the debounced function defined here: https://github.com/jupyterlab/jupyterlab/blob/master/packages/apputils-extension/src/index.ts#L302-L307
Eric Charles
@echarles
thx @afshin I was in those client areas and your explanation really helps
Afshin Taylor Darian
@afshin
:+1: glad to help
Eric Charles
@echarles
I don’t think anything special is implemented on severside for this process to happen. right?
Afshin Taylor Darian
@afshin
That is correct. The logic is all on the client.
Eric Charles
@echarles
:+1: