I tried to update Python to 3.7 and I'm still running into a similar problem to the one described in issue #26.
jupyterlab-toc-0.3.1.tgz
Errored, use --debug for full output:
ValueError: No version of @jupyterlab/toc could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.
Conflicting Dependencies:
JupyterLab Extension Package
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/application
>=0.16.4 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/apputils
>=1.1.3 <2.0.0 >=2.0.0 <3.0.0 @jupyterlab/coreutils
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/docmanager
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/fileeditor
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/notebook
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/rendermime
I don't understand how to read the table of conflicting dependencies.
Is that right? I don't think so, because my jupyterlab is 0.32.1, which is newer than all of the requirements listed in the table.
So, I'm confused and don't understand how to read this or how to debug it any further.
jupyter labextension install --debug @jupyterlab/toc
jupyter labextension install --debug @jupyterlab/toc
Searching ['/PHShome/ks38', '/PHShome/ks38/.jupyter', '/data/srlab/slowikow/src/miniconda2/envs/py37/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
Looking for jupyter_config in /etc/jupyter
Looking for jupyter_config in /usr/local/etc/jupyter
Looking for jupyter_config in /data/srlab/slowikow/src/miniconda2/envs/py37/etc/jupyter
Looking for jupyter_config in /PHShome/ks38/.jupyter
Looking for jupyter_config in /PHShome/ks38
> /data/srlab/slowikow/src/miniconda2/envs/py37/bin/npm pack @jupyterlab/toc
npm notice
npm notice 📦 @jupyterlab/[email protected]
npm notice === Tarball Contents ===
npm notice 2.1kB package.json
npm notice 1.5kB LICENSE
npm notice 1.2kB README.md
npm notice 304B lib/extension.d.ts
npm notice 3.2kB lib/extension.js
npm notice 1.6kB lib/generators.d.ts
npm notice 12.4kB lib/generators.js
npm notice 81B lib/index.d.ts
npm notice 373B lib/index.js
npm notice 2.1kB lib/registry.d.ts
npm notice 1.3kB lib/registry.js
npm notice 3.2kB lib/toc.d.ts
npm notice 4.9kB lib/toc.js
npm notice 1.4kB style/index.css
npm notice === Tarball Details ===
npm notice name: @jupyterlab/toc
npm notice version: 0.3.1
npm notice filename: jupyterlab-toc-0.3.1.tgz
npm notice package size: 9.5 kB
npm notice unpacked size: 35.5 kB
npm notice shasum: 0e46f30a3f99174b3e460448968ecc2bc6501496
npm notice integrity: sha512-nWhBFajzgK5UM[...]EXQK0f7bwxxng==
npm notice total files: 14
npm notice
jupyterlab-toc-0.3.1.tgz
Fetching URL: https://registry.npmjs.org/@jupyterlab%2Ftoc
Fetching URL: https://registry.npmjs.org/@jupyterlab%2Ftoc
Traceback (most recent call last):
File "/data/srlab/slowikow/src/miniconda2/envs/py37/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 71, in start
ans = self.run_task()
File "/data/srlab/slowikow/src/miniconda2/envs/py37/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 100, in run_task
for arg in self.extra_args
File "/data/srlab/slowikow/src/miniconda2/envs/py37/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 100, in <listcomp>
for arg in self.extra_args
File "/data/srlab/slowikow/src/miniconda2/envs/py37/lib/python3.7/site-packages/jupyterlab/commands.py", line 227, in install_extension
return handler.install_extension(extension)
File "/data/srlab/slowikow/src/miniconda2/envs/py37/lib/python3.7/site-packages/jupyterlab/commands.py", line 366, in install_extension
info = self._install_extension(extension, tempdir)
File "/data/srlab/slowikow/src/miniconda2/envs/py37/lib/python3.7/site-packages/jupyterlab/commands.py", line 1157, in _install_extension
raise ValueError(msg)
ValueError: No version of @jupyterlab/toc could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.
Conflicting Dependencies:
JupyterLab Extension Package
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/application
>=0.16.4 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/apputils
>=1.1.3 <2.0.0 >=2.0.0 <3.0.0 @jupyterlab/coreutils
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/docmanager
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/fileeditor
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/notebook
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/rendermime
Errored, use --debug for full output:
ValueError: No version of @jupyterlab/toc could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.
Conflicting Dependencies:
JupyterLab Extension Package
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/application
>=0.16.4 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/apputils
>=1.1.3 <2.0.0 >=2.0.0 <3.0.0 @jupyterlab/coreutils
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/docmanager
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/fileeditor
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/notebook
>=0.16.3 <0.17.0 >=0.17.0 <0.18.0 @jupyterlab/rendermime
The new functionality in @jupyterlab/toc
is awesome, but some if it is kind of hard to maintain and understand. In particular, the notebook generator is over 500 lines long with many branches. We should try to modularize and simplify this.
@markellekelly, do you have any cycles to devote to this, and you able to have a video chat at some point to come up with a strategy?
When installing jupyterlab-toc
, the process is stuck "resolving packages". As of this writing, I have been waiting roughly 15 minutes and I haven't aborted the process yet. My juputerlab notebook server is running at the time of install.
jupyter labextension install jupyterlab-toc
> /usr/local/bin/npm pack jupyterlab-toc
npm notice
npm notice 📦 [email protected]
npm notice === Tarball Contents ===
npm notice 1.6kB package.json
npm notice 863B README.md
npm notice 1.5kB LICENSE
npm notice 2.9kB lib/extension.js
npm notice 11.3kB lib/generators.js
npm notice 373B lib/index.js
npm notice 1.5kB lib/registry.js
npm notice 6.5kB lib/toc.js
npm notice 304B lib/extension.d.ts
npm notice 1.1kB lib/generators.d.ts
npm notice 81B lib/index.d.ts
npm notice 2.1kB lib/registry.d.ts
npm notice 3.2kB lib/toc.d.ts
npm notice 2.1kB style/index.css
npm notice === Tarball Details ===
npm notice name: jupyterlab-toc
npm notice version: 0.2.1
npm notice filename: jupyterlab-toc-0.2.1.tgz
npm notice package size: 9.5 kB
npm notice unpacked size: 35.5 kB
npm notice shasum: edd570ba1a523e3e2bf5811b9995f9a99e0c4fe4
npm notice integrity: sha512-toWEuuN9zi3NM[...]qkQRGoDWupk+g==
npm notice total files: 14
npm notice
jupyterlab-toc-0.2.1.tgz
> node /usr/local/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.5.1
(node:2376) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info No lockfile found.
[1/4] 🔍 Resolving packages...
⠈ jupyterlab-toc@file:../extensions/jupyterlab-toc-0.2.1.tgz
I am new to jupyter and jupyterlab so please bear with me.
I have installed jupyterlab via conda install -c conda-forge jupyterlab
and I have the current version of conda
installed since earlier.
I started the jupyterlab notebook at a specific directory:
jupyter lab --NotebookApp.notebook_dir=/Users/me/blah/Jupyter/JupyterLab/Notebooks
It is common to start a notebook with a title, like:
# My notebook title
Some information
## My first "real" title
> code
Here, I don't want the title of the notebook to be numbered.
An interesting feature of the ToC 2 extension was to skip the h1 headers in the automatic numbering.
Is it possible to do the same with jupyterlab-toc? If not, is it a feature that could be included in the road map?
Thank you.
Hi,
As of today, it seems to me that simple-clicking and double-clicking have the same effect in the toc extension.
When trying the new expand/collapse header sections, I expected to be able to collapse/expand the header section when doublie-clicking - which today only takes me to that header.
Would it be possible to implement this double-click behavior ? It'd feel very intuitive IMO.
I know it is possible to collapse/expand sections when clicking the arrow, which is a nice feature, but I think double-clicking the header would be more convenient.
Hope this is clear !
While playing around with a markdown file, I noticed the following text in my md file:
renders in the toc as :
I'm guessing a parsing bug ?
The storing of ToC view-state in cell metadata seems like an unnecessary editing of the user's notebook to me. We should see if we can store that in the statedb instead.
#34 added several new usages of this functionality. We should make sure that the sanitizer is used where appropriate.
Hi
Not sure:
can i install this extension for jupyterlab 0.33 and python 2.7 ?
That s only work for python3.6, isn t it
regards
Fabien
Thanks so much for your work on this extension! I've been using Lab more and more and definitely missing TOC2.
Would you consider adding a 'collapse' option for each of the items in the TOC? I imagine it being a small icon to the right of the TOC item that, when selected, hides the cells between that TOC item and the next. This is another JupyterNB extension that is sorely missed. If you need, I can put some nice icons together for you, beta test, and I will look into helping with the code as well.
Thanks again for the update you made in #15 -- I regularly add to my TOC by displaying markdown snippets in my output cells.
However, I have recently come across the pandas-profiling module, which allows for the creating of a neat pd.DataFrame summary report (via pandas_profiling.ProfileReport(df)
). This, however, creates a lot of top-level headings that end up getting captured by the TOC plugin.
So, for this feature request -- could we have any way to turn off the capturing of headings in certain output cells? Perhaps a right-click on the cell in question, with a menu item saying "ignore output in TOC", or something like that.
Alternatively, if the Headings in TOC themselves can be collapsed (a little different from #12, as this isn't collapsing the cell contents, but the TOC entry itself), this would probably be sufficient. Perhaps allow the highest level TOC entry to collapse to a "..." to conserve space, but still notify the user that there is something there, if they care to expand it.
And, once again, thank you for this great plugin!
Hi,
I noticed that if I have multiple markdown headings in the same cell, all the headings are indeed in the toc, but they all take me to the top of that cell.
Maybe if multiple headings are in the same cell, the links in the toc should bring you to that heading, and not to the top of the cell of that heading ?
Hi there,
This extension is looking awesome - thanks for the hard work!
I just wanted to report a very minor bug. It seems that when a markdown cell with a section header is in edit mode (not rendered as markdown), that section has a folding triangle next to it in the left area, even when it doesn't have children to display. Clicking the triangle toggles the icon, but has no other effect.
Demonstrated in Section 2. in the following screenshot.
When the cell is re-rendered, the triangle disappears, but only after selecting another cell.
Similarly, when the cell is un-rendered, the triangle reappears, but only after selecting another cell.
Again, very minor, but thought it would be good to point out in case it comes up again later.
Thanks!
Oliver
Hi,
I installed JupyterLab and the first thing I tried to do is install your extension. But I am not able to do that due to the following errors.
npm notice
npm notice 📦 @jupyterlab/[email protected]
npm notice === Tarball Contents ===
npm notice 2.1kB package.json
npm notice 1.5kB LICENSE
npm notice 1.2kB README.md
npm notice 304B lib/extension.d.ts
npm notice 3.3kB lib/extension.js
npm notice 1.6kB lib/generators.d.ts
npm notice 12.4kB lib/generators.js
npm notice 81B lib/index.d.ts
npm notice 373B lib/index.js
npm notice 2.1kB lib/registry.d.ts
npm notice 1.3kB lib/registry.js
npm notice 3.2kB lib/toc.d.ts
npm notice 4.9kB lib/toc.js
npm notice 1.6kB style/index.css
npm notice 625B style/list-dark.svg
npm notice 625B style/list-light.svg
npm notice === Tarball Details ===
npm notice name: @jupyterlab/toc
npm notice version: 0.4.0
npm notice filename: jupyterlab-toc-0.4.0.tgz
npm notice package size: 9.9 kB
npm notice unpacked size: 37.1 kB
npm notice shasum: 197db58e4a9f8d5ca776800cd6b6c5eaf09adeae
npm notice integrity: sha512-6n2CWkkHvPePS[...]Cm1wY959ZU86Q==
npm notice total files: 16
npm notice
jupyterlab-toc-0.4.0.tgz
Errored, use --debug for full output:
ValueError:
"@jupyterlab/[email protected]" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab Extension Package
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/application
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/apputils
>=1.0.6-0 <2.0.0-0 >=2.1.0-0 <3.0.0-0 @jupyterlab/coreutils
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/docmanager
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/fileeditor
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/notebook
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/rendermime
I am not sure if that is related to any recent update at JL
Thanks
This extension is great! Just wanted to suggest a feature: instead of going blank when editing a Python file, it could show a skeleton of the code with the class/method lines.
If so, has it been published?
C:\> jupyter labextension install jupyterlab-toc
> C:\Miniconda3\npm.CMD pack jupyterlab-toc
npm WARN deprecated [email protected]: This package has been renamed '@jupyterlab/toc'
jupyterlab-toc-0.2.1.tgz
Failed to fetch package metadata for 'jupyterlab-toc': URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)
Failed to fetch package metadata for 'jupyterlab-toc': URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)
Errored, use --debug for full output:
ValueError: No version of jupyterlab-toc could be found that is compatible with the current version of JupyterLab.
Conflicting Dependencies:
JupyterLab Extension Package
>=0.17.2 <0.18.0 >=0.16.0 <0.17.0 @jupyterlab/application
>=0.17.2 <0.18.0 >=0.16.2 <0.17.0 @jupyterlab/apputils
>=2.0.2 <3.0.0 >=1.0.0 <2.0.0 @jupyterlab/coreutils
>=0.17.2 <0.18.0 >=0.16.0 <0.17.0 @jupyterlab/docmanager
>=0.17.2 <0.18.0 >=0.16.0 <0.17.0 @jupyterlab/fileeditor
>=0.17.2 <0.18.0 >=0.16.0 <0.17.0 @jupyterlab/notebook
>=0.17.3 <0.18.0 >=0.16.0 <0.17.0 @jupyterlab/rendermime
The SSL issues are a bit suspicious however I can definitely install other extensions without any problem.
Recommend Projects
-
-
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
An Open Source Machine Learning Framework for Everyone
-
The Web framework for perfectionists with deadlines.
-
A PHP framework for web artisans
-
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
Some thing interesting about web. New door for the world.
-
A server is a program made to process requests and deliver data to clients.
-
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Some thing interesting about visualization, use data art
-
Some thing interesting about game, make everyone happy.
-
Recommend Org
-
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Open source projects and samples from Microsoft.
-
Google ❤️ Open Source for everyone.
-
Alibaba Open Source for everyone
-
Data-Driven Documents codes.
-
China tencent open source team.
-