Giter Club home page Giter Club logo

jupyterlab_filetree's Introduction

jupyterlab_filetree

Status

Due to various circumstances, I have decided to no longer maintain this project. Thank you to all the contributors and users for providing feedback. Building and maintaining this project has been a great learning experience. For a similar project with additional features, consider using jupyter-fs.

File Tree View as side bar tool

Build Status

npm

Screenshot

Prerequisites

  • JupyterLab

Installation

jupyter labextension install jupyterlab_filetree

Development

For a development install (requires npm version 4 or later), do the following in the repository directory:

npm install
npm run build
jupyter labextension link .

To rebuild the package and the JupyterLab app:

npm run build
jupyter lab build

jupyterlab_filetree's People

Contributors

martinrenou avatar timkpaine avatar youngthejames avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jupyterlab_filetree's Issues

Issue with a folder full of ~500 untrusted files

Hi, I have a folder with 469 untrusted files. When I navigate to that folder, the logs are spammed with messages like these:

[W 2021-06-24 07:51:28.229 SingleUserNotebookApp manager:510] Notebook <path>.ipynb is not trusted
[I 2021-06-24 07:51:28.238 SingleUserNotebookApp log:189] 200 GET <api-path>.ipynb?1624521002346 ([email protected]) 42898.22ms

The Kubernetes pod becomes unresponsible at this moment and already open notebooks show Connecting because they cannot reach the kernel anymore.

It seems that the extension is trying to access all files. I don't see why it would do that, though. In any case it leads to severe performance problems and makes the Jupyter server unresponsive.

viewing hidden files

This might too specific of a use, but it would be great if there was an easy way to toggle viewing hidden files (e.g. .gitignore). Not sure if this is possible, but would be great if it's something that literally can be toggled on or off during a session.

Extension does not work

The extension is not working for me. jupyter-widgest/jupyterlab-manager and jupyterlab/toc do work in the JupyterLab. I'm working in an environment with the following requirements:

jupyter==1.0.0
lxml==4.5.1
MarkupSafe==1.1.1
matplotlib==3.3.2
notebook==6.0.3
numpy==1.18.1
openpyxl==3.0.4
pandas==1.1.2
Pillow==7.2.0
scikit-learn==0.23.2
scipy==1.4.1
seaborn==0.11.0
SQLAlchemy==1.3.18
xlrd==1.2.0

My Jupyter:

jupyter core     : 4.7.0
jupyter-notebook : 6.1.5
qtconsole        : 5.0.1
ipython          : 7.19.0
ipykernel        : 5.4.2
jupyter client   : 6.1.7
jupyter lab      : 2.2.6
nbconvert        : 6.0.7
ipywidgets       : 7.5.1
nbformat         : 5.0.8
traitlets        : 5.0.5

Node v12.19.0.

filetree does not dislpay and triggers exception

I'm getting errors when I try to run filetree. Nothing is displaying in the filetree

When I look at the console messages I get an error when it tries to look at the type for this code in filetree.js

    if (object.type === "directory") {
        icon = ui_components_1.LabIcon.resolveElement({ icon: this.dr.getFileType("directory").icon });
        icon.className = "jp-DirListing-itemIcon";
        tr.className += " filetree-folder";
    }

Object seems to be undefined which triggers and exception which causes the tree not to display.

extension not working for JupyterLab v2.2.5

Hi, I just tried to install this extension. It says it's enabled, but nothing happens for the sidebar and I can not see the expected file tree. I have tried to clear the browser cache but it did not work. Might be related to #29.

(hejia@tigercpu) [hejia@tigercpu ~]$ jupyter labextension list
JupyterLab v2.2.5
Known labextensions:
   app dir: /home/hejia/.conda/envs/hejia@tigercpu/share/jupyter/lab
        jupyterlab_filetree v0.2.2  enabled  OK

Sub directories and files don't show in file tree view; Also cannot click into directories.

I'm using this JupyterLab FileTree extension in JupyterLab 2.1.5 in Python 3.8.3.

In the File Tree view, I can only see the top-level directories and files, and no subdirs and sub files.

Furthermore, when I try clicking on a directory, I cannot enter it. Instead, I seem to be prompted to edit the directory name instead (screenshot attached).

Your help to review this issue would be most appreciated. Thank you.

Screenshot 2020-07-09 00 07 01

Installing without nodejs

Is ther anyway this extension could be installed without the need for nodejs? Like the git extension on the newest jupyterlab

filetree makes Pandas dataframe columns display as uppercase

Description

Enabling the jupyterlab_filetree extensions incorrectly displays the column names of a pandas DataFrame as uppercase.

Screenshots

With the filetree extension loaded.

filetree

Without the filetree extension.

no_filetree

Potential cause

I assume it has something to do with the uppercase tags in index.css. Though I don't know how these interefere with pandas.

"This extension does not yet support the current version of JupyterLab."

hi,
I'd love to give this a try, but:

❯ jupyter labextension install jupyterlab_filetree
An error occured.
ValueError: This extension does not yet support the current version of JupyterLab.


Conflicting Dependencies:
JupyterLab              Extension      Package
>=1.0.0 <2.0.0          >=0.19.1 <0.20.0@jupyterlab/application
>=1.0.0 <2.0.0          >=0.19.1 <0.20.0@jupyterlab/docmanager
>=1.0.0 <2.0.0          >=0.19.3 <0.20.0@jupyterlab/filebrowser
>=4.0.0 <5.0.0          >=3.2.1 <4.0.0 @jupyterlab/services
See the log file for details:  /var/folders/ty/hqltzjf51hl4fsml7zc9db4r0000gn/T/jupyterlab-debug-bjcpbpcd.log

jupyter lab version is 1.0.1

Publish to PyPi

Thanks for this amazing extension!

I see it supports the JupyterLab 3 federated extension system, that's cool. Any chance this package could be uploaded to PyPi?

Just making an sdist and a wheel and uploading with twine should be enough.

python setup.py bdist_wheel sdist
twine upload dist/*

I'd be happy to help to make a conda package after that.

Support JupyterLab >= 3.0.6

Hi, I'm getting this error:

07:06:34 ~ ✞ jupyter labextension install jupyterlab_filetree
An error occured.
ValueError: The extension "jupyterlab_filetree" does not yet support the current version of JupyterLab.


Conflicting Dependencies:
JupyterLab              Extension      Package
>=3.0.6 <3.1.0          >=2.0.0 <3.0.0 @jupyterlab/application
>=3.0.6 <3.1.0          >=2.0.0 <3.0.0 @jupyterlab/docmanager
>=3.0.6 <3.1.0          >=2.0.0 <3.0.0 @jupyterlab/filebrowser
>=6.0.5 <6.1.0          >=5.0.0 <6.0.0 @jupyterlab/services
See the log file for details:  /tmp/jupyterlab-debug-7uawdqfr.log

feature suggestion: sort by last modified

Hi, thank you for creating this plugin.
I've been using it for several days and thought it would be nice to be able to click the "Last Modified" on the header to sort the files by their last modified timestamp.

Thanks!

Keep track of the structure after page refresh

Is it possible to keep track of the current tree (opened folder) after a page refresh? to be more clear: after I do a page refresh (F5) all the folder are collapsed, it would be very handy if the plugin could keep track of the expanded folder.

Server extension to register multiple contents managers

  • add python extension that can query the backend for multiple contents managers, and provide them to the frontend
  • expand frontend to instantiate a filetree for each of the backend contents managers, and use set the BASEPATH so the meta-contents manager can differentiate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.