Giter Site home page Giter Site logo

chesterli29 / jupyterlab_tensorboard Goto Github PK

View Code? Open in Web Editor NEW
314.0 314.0 36.0 1.13 MB

Tensorboard extension for jupyterlab.

License: MIT License

TypeScript 55.09% CSS 4.54% JavaScript 2.13% Python 38.24%
jupyterlab jupyterlab-extension tensorboard

jupyterlab_tensorboard's People

Contributors

carmark avatar chesterli29 avatar consideratio avatar dependabot[bot] avatar queuecumber avatar twalcari avatar wexder 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  avatar

jupyterlab_tensorboard's Issues

Not support jupyterlab 3.X

Current version doesn't support jupyterlab 3.x

Conflicting Dependencies:
JupyterLab Extension Package

=3.0.0 <3.1.0 >=2.0.0 <3.0.0 @jupyterlab/application
=3.0.0 <3.1.0 >=2.0.0 <3.0.0 @jupyterlab/apputils
=5.0.0 <5.1.0 >=4.0.0 <5.0.0 @jupyterlab/coreutils
=3.0.0 <3.1.0 >=2.0.0 <3.0.0 @jupyterlab/launcher
=6.0.0 <6.1.0 >=5.0.0 <6.0.0 @jupyterlab/services
=3.0.0 <3.1.0 >=2.0.0 <3.0.0 @jupyterlab/mainmenu
=3.0.0 <3.1.0 >=2.0.0 <3.0.0 @jupyterlab/filebrowser
=3.0.0 <3.1.0 >=2.0.0 <3.0.0 @jupyterlab/ui-components

Launcher Error

Got a lunch error

image

Try to lunch with specific logdir, even I use '/home', still return Directory not found.

image

If you need further details to debug, please comment.

Thanks a lot.

Jupyterlab 2.0 support

Jupyterlab 2.0 has been released recently, but it doesn't work with Jupyterlab 2.0.

As of 2020/3/8:

❯❯❯ jupyter labextension install jupyterlab_tensorboard

An error occured.
ValueError: The extension "jupyterlab_tensorboard" does not yet support the current version of JupyterLab.


Conflicting Dependencies:
JupyterLab              Extension      Package
>=2.0.2 <2.1.0          >=1.0.0 <2.0.0 @jupyterlab/application
>=2.0.2 <2.1.0          >=1.0.0 <2.0.0 @jupyterlab/apputils
>=4.0.2 <4.1.0          >=3.0.0 <4.0.0 @jupyterlab/coreutils
>=2.0.2 <2.1.0          >=1.0.0 <2.0.0 @jupyterlab/launcher
>=5.0.2 <5.1.0          >=4.0.0 <5.0.0 @jupyterlab/services
❯❯❯ pip freeze | grep jupyterlab
jupyterlab==2.0.1
jupyterlab-server==1.0.6

Launcher Error Invalid response: 500 Internal Server Error

I am running jupyter lab on a server and accessing it via tunneling. I have installed everything the environment but getting

Launcher Error
Invalid response: 500 Internal Server Error

Error log:

[E 01:47:34.366 LabApp] Uncaught exception POST /api/tensorboard?1574837254333 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='localhost:9000', method='POST', uri='/api/tensorboard?1574837254333', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/tornado/web.py", line 1697, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/tornado/web.py", line 3174, in wrapper
        return method(self, *args, **kwargs)
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/jupyter_tensorboard/api_handlers.py", line 40, in post
        .new_instance(data["logdir"], reload_interval=reload_interval)
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 148, in new_instance
        purge_orphaned_data=purge_orphaned_data)
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 46, in create_tb_app
        tensorboard.assets_zip_provider)
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/tensorboard/backend/application.py", line 157, in standard_tensorboard_wsgi
        flags, plugin_loaders, data_provider, assets_zip_provider, multiplexer)
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 113, in TensorBoardWSGIApp
        path_to_run = application.parse_event_files_spec(logdir)
      File "/home/5sg/anaconda3/envs/pt/lib/python3.6/site-packages/tensorboard/backend/application.py", line 455, in parse_event_files_spec
        for specification in logdir_spec.split(','):
    AttributeError: 'Namespace' object has no attribute 'split'
[W 01:47:34.367 LabApp] Unhandled error
[E 01:47:34.368 LabApp] {
      "Host": "localhost:9000",
      "Connection": "keep-alive",
      "Content-Length": "22",
      "Authorization": "token 401f2b8e783e2a50aec2e64c05e9b2a5cf8c1b8d0a8e5ed7",
      "Origin": "http://localhost:9000",
      "X-Xsrftoken": "2|fffa844f|42f6c3eccfa21538c79fd36d886881ab|1572963744",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36",
      "Dnt": "1",
      "Content-Type": "application/json",
      "Accept": "*/*",
      "Sec-Fetch-Site": "same-origin",
      "Sec-Fetch-Mode": "cors",
      "Referer": "http://localhost:9000/lab",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "en-US,en;q=0.9,hi;q=0.8",
      "Cookie": "_xsrf=2|fffa844f|42f6c3eccfa21538c79fd36d886881ab|1572963744; username-localhost-9999=\"2|1:0|10:1574832035|23:username-localhost-9999|44:MWY0NTNhNWY2NGYyNDYxYzg4MWMzNWVkZmFkN2NkNzE=|4767ddaf8d441d2a597605b6775ebb7a7792ed49759859e50a0281d49916bb67\"; username-localhost-9000=\"2|1:0|10:1574837254|23:username-localhost-9000|44:NjE0NWFjZWEwNTNmNDkzNmJiMTk5NDhkZmRhYTI3ZDA=|e1158687cdf8477d06336d5058bf6ebb104a6cbf19ed078b66707ceae7bf0e2c\""
    }
[E 01:47:34.368 LabApp] 500 POST /api/tensorboard?1574837254333 (127.0.0.1) 4.88ms referer=http://localhost:9000/lab
Done with AddRunsFromDirectory: /home/5sg/notebooks
TensorBoard reload process: Reload the whole Multiplexer
Beginning EventMultiplexer.Reload()
Reloading runs serially (one after another) on the main thread.
Finished with EventMultiplexer.Reload()
TensorBoard done reloading. Load took 0.004 secs
TensorBoard reload process beginning
Starting AddRunsFromDirectory: /home/5sg/notebooks
GetLogdirSubdirectories: Starting to list directories via walking.
Done with AddRunsFromDirectory: /home/5sg/notebooks
TensorBoard reload process: Reload the whole Multiplexer
Beginning EventMultiplexer.Reload()
Reloading runs serially (one after another) on the main thread.
Finished with EventMultiplexer.Reload()
TensorBoard done reloading. Load took 0.001 secs
TensorBoard reload process beginning
Starting AddRunsFromDirectory: /home/5sg/notebooks
GetLogdirSubdirectories: Starting to list directories via walking.
Done with AddRunsFromDirectory: /home/5sg/notebooks
TensorBoard reload process: Reload the whole Multiplexer
Beginning EventMultiplexer.Reload()
Reloading runs serially (one after another) on the main thread.
Finished with EventMultiplexer.Reload()
TensorBoard done reloading. Load took 0.001 secs

Tensorboard 2.0 error

Hello,

There is an incompatibility with tensorboard 2.0 which was just relased with tensorflow 2.0

Event Multiplexer initializing.
Event Multiplexer done initializing
Launching reload in a daemon thread
TensorBoard reload process beginning
Starting AddRunsFromDirectory: /opt/app-root/src/logs/fit
GetLogdirSubdirectories: Starting to list directories via walking.
Adding run from directory /opt/app-root/src/logs/fit/20191001-153636/validation
Constructing EventAccumulator for /opt/app-root/src/logs/fit/20191001-153636/validation
[E 15:48:17.963 LabApp] Uncaught exception POST /api/tensorboard?1569944897920 (127.0.0.1)
HTTPServerRequest(protocol='http', host='hostname', method='POST', uri='/api/tensorboard?1569944897920', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/opt/app-root/lib/python3.6/site-packages/tornado/web.py", line 1697, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/opt/app-root/lib/python3.6/site-packages/tornado/web.py", line 3174, in wrapper
return method(self, *args, **kwargs)
File "/opt/app-root/lib/python3.6/site-packages/jupyter_tensorboard/api_handlers.py", line 40, in post
.new_instance(data["logdir"], reload_interval=reload_interval)
File "/opt/app-root/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 148, in new_instance
purge_orphaned_data=purge_orphaned_data)
File "/opt/app-root/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 46, in create_tb_app
tensorboard.assets_zip_provider)
File "/opt/app-root/lib/python3.6/site-packages/tensorboard/backend/application.py", line 157, in standard_tensorboard_wsgi
flags, plugin_loaders, data_provider, assets_zip_provider, multiplexer)
File "/opt/app-root/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 113, in TensorBoardWSGIApp
path_to_run = application.parse_event_files_spec(logdir)
File "/opt/app-root/lib/python3.6/site-packages/tensorboard/backend/application.py", line 455, in parse_event_files_spec
for specification in logdir_spec.split(','):
AttributeError: 'Namespace' object has no attribute 'split'
Adding run from directory /opt/app-root/src/logs/fit/20191001-153636/train
Constructing EventAccumulator for /opt/app-root/src/logs/fit/20191001-153636/train
...
[E 15:48:17.968 LabApp] 500 POST /api/tensorboard?1569944897920 (127.0.0.1) 19.22ms referer=https://hostname/lab?
POST /api/tensorboard?1569944897920 500 20.322 ms - 1529
Done with AddRunsFromDirectory: /opt/app-root/src/logs/fit

uninstall error

Because I cannot use this extension,it always says 404 when I click the Tensorboard card in the launcher,so I use jupyter labextension uninstall jupyterlab_tensorboard to uninstall it.
But then I can't launch jupyterlab,the brower is blank and there ia a warning:

[W 20:12:56.063 LabApp] Error loading server extension jupyter_tensorboard
Traceback (most recent call last):
File "/home/yaogang/miniconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1481, in init_server_extensions
mod = importlib.import_module(modulename)
File "/home/yaogang/miniconda3/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'jupyter_tensorboard'

What should I do then?

having problems running through jupyterhub

I'm trying to run jupyterlab_tensorboard but I'm getting a 404 error when I try to create a board. I'm running the system behind a reverse proxy and a jupyterhub so that there may be some broken url mangling issues.

docker

Hi,
I still get error 500 or 404 with all the supposed dependencies installed.

My installation is inside a docker and I need to add --bind_all to the tensorboard call to run in a notebook. It works well then, but get a gray screen without it.

I wonder if I can add this option to the jupyterlab_tensorboard to check If that is the reason it is not starting.

Thanks

Victor

problem: 'NoneType' object has no attribute 'config_file_paths'

jupyter labextension install jupyterlab_tensorboard
An error occured.
AttributeError: 'NoneType' object has no attribute 'config_file_paths'
See the log file for details: /tmp/jupyterlab-debug-d9lefllj.log

File "/usr/local/lib/python3.8/dist-packages/traitlets/traitlets.py", line 1580, in trait_defaults
return self._get_trait_default_generator(names[0])(self)

File "/usr/local/lib/python3.8/dist-packages/traitlets/traitlets.py", line 977, in call
return self.func(*args, **kwargs)

File "/usr/local/lib/python3.8/dist-packages/jupyterlab/labextensions.py", line 120, in _default_labextensions_path
lab.load_config_file()

File "/usr/local/lib/python3.8/dist-packages/jupyter_core/application.py", line 174, in load_config_file
self.log.debug("Searching %s for config files", self.config_file_paths)

File "/usr/local/lib/python3.8/dist-packages/jupyter_server/extension/application.py", line 168, in config_file_paths
return self.serverapp.config_file_paths

AttributeError: 'NoneType' object has no attribute 'config_file_paths'

Exiting application: lab

Support for JupyterLab 1.0

Was getting an error about dependency version discrepancy
`JupyterLab Extension Package

=1.0.0-alpha.3 <2.0.0 >=0.19.1 <0.20.0 @jupyterlab/application
=1.0.0-alpha.3 <2.0.0 >=0.19.1 <0.20.0 @jupyterlab/apputils
=1.0.0-alpha.3 <2.0.0 >=0.19.1 <0.20.0 @jupyterlab/launcher`

Tried building locally and changing the dependency versions to ^1.0.0-alpha.3 and now I seem to be getting errors in type script.

New to this community so might be missing some obvious fix. Any help would be appreciated

problem: Launcher Error Invalid response: 404 Not Found

problem:
error

I also have similar troubles, Related information is as follows:

root@fx-nb-1-0:/home/jovyan# pip list | grep tensorflow
tensorflow                        2.1.0               
tensorflow-data-validation        0.15.0              
tensorflow-datasets               2.1.0               
tensorflow-estimator              2.1.0               
tensorflow-gpu                    2.0.0rc0            
tensorflow-hub                    0.7.0               
tensorflow-metadata               0.15.2              
tensorflow-model-analysis         0.15.4              
tensorflow-serving-api            2.1.0               
tensorflow-transform              0.15.0
root@fx-nb-1-0:/home/jovyan# pip list | grep jupyter
jupyter                           1.0.0               
jupyter-client                    5.3.1               
jupyter-console                   6.0.0               
jupyter-contrib-core              0.3.3               
jupyter-contrib-nbextensions      0.5.1               
jupyter-core                      4.5.0               
jupyter-highlight-selected-word   0.2.0               
jupyter-http-over-ws              0.0.6               
jupyter-latex-envs                1.4.6               
jupyter-nbextensions-configurator 0.4.1               
jupyter-tensorboard               0.2.0               
jupyterlab                        1.1.4               
jupyterlab-latex                  1.0.0               
jupyterlab-server                 1.0.6 
root@fx-nb-1-0:/home/jovyan# pip list | grep tensorboard
jupyter-tensorboard               0.2.0               
tensorboard                       2.1.1
root@fx-nb-1-0:/home/jovyan# jupyter labextension list
JupyterLab v1.1.4
Known labextensions:
   app dir: /usr/local/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v1.0.3  enabled  OK
        @jupyterlab/latex v1.0.0  enabled  OK
        @jupyterlab/plotly-extension v1.0.0  enabled  OK
        @jupyterlab/toc v2.0.0  enabled  OK
        @mflevine/jupyterlab_html v0.1.4  enabled  OK
        @ryantam626/jupyterlab_code_formatter v1.1.0  enabled  OK
        jupyterlab-drawio v0.6.0  enabled  OK
        jupyterlab_tensorboard v0.1.6  enabled  OK
        qgrid v1.1.1  enabled  OK
root@fx-nb-1-0:/home/jovyan# jupyter serverextension list
config dir: /root/.jupyter
    jupyter_http_over_ws  enabled 
    - Validating...
      jupyter_http_over_ws 0.0.6 OK
    jupyter_tensorboard  enabled 
    - Validating...
      jupyter_tensorboard 0.2.0 OK
config dir: /usr/etc/jupyter
    jupyter_tensorboard  enabled 
    - Validating...
      jupyter_tensorboard 0.2.0 OK
config dir: /usr/local/etc/jupyter
    jupyterlab  enabled 
    - Validating...
      jupyterlab 1.1.4 OK
    jupyterlab_latex  enabled 
    - Validating...
      jupyterlab_latex 1.0.0 OK
    jupyter_nbextensions_configurator  enabled 
    - Validating...
      jupyter_nbextensions_configurator 0.4.1 OK

Originally posted by @efengx in #5 (comment)

404 from launcher

Error

[W 00:22:26.199 NotebookApp] 404 GET /api/tensorboard?1579566146190 (::1) 2.44ms referer=http://localhost:8888/lab

Pip

tensorflow 2.0
tensorboard 2.0.2
tensorflow-tensorboard 1.5.1
tensorflow-estimator 2.0.1

jupyter-tensorboard 0.1.10

jupyter-client 5.3.4
jupyter-contrib-core 0.3.3
jupyter-core 4.6.1
jupyter-nbextensions-configurator 0.4.1
jupyterlab 1.2.4
jupyterlab-server 1.0.6

keract 3.0.1
Keras 2.3.1
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0

Extensions
Successfully rebuilt after installing this:
image

Launcher
image

Couple of UI Inconsistencies

I am really loving this extension but I think it has a couple of UI inconsistencies, if these could be ironed out it would be perfect

  1. Using the File -> New menu doesn't have an option to create a new tensorboard, it should really be there for consistency
  2. There is already a side panel for "running terminals and kernels" that the tensorboards should be listen in instead of making a new tab for them, that would keep all the running "things" in one place and make the side bar appear cleaner

I started preparing a pull request for this but I found the extension API to be quite poorly documented and confusing. I'm still happy to work on it but I was hoping to get some points on where to look to make the changes

Support for logdir to be a Cloud Storage Location

It's a feature request for this already awesome plugin.
It would be very helpful to support tensorboard logdir to be a cloud storage location.
It's is helpful in all the debug scenario, particularly for monitoring hparam tuning, training etc.

Support for newer JupyterLab

Can't install the extension on JupyterLab 4.4.0. Is it just a matter of dependencies update or it will actually break?

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

Conflicting Dependencies:
JupyterLab              Extension        Package
>=0.19.1 <0.20.0        >=0.18.2 <0.19.0 @jupyterlab/launcher
>=0.19.1 <0.20.0        >=0.18.2 <0.19.0 @jupyterlab/application
>=0.19.1 <0.20.0        >=0.18.2 <0.19.0 @jupyterlab/apputils
root@alexg-train:~# jupyter --version
4.4.0
root@alexg-train:~#

`npm install` failed

npm install failed for me with the following error

node_modules/@jupyterlab/launcher/lib/index.d.ts:7:24 - error TS7016: Could not find a declaration file for module 'react'. '/Users/doriadong/vip/jupyterlab_tensorboard/node_modules/react/index.js' implicitly has an 'any' type.
  Try `npm install @types/react` if it exists or add a new declaration (.d.ts) file containing `declare module 'react';`

7 import * as React from 'react';

[Solution] 500 Internal Server Error due to tensorboard update

Some info redacted.

Uncaught exception POST /api/tensorboard?XXXX
    HTTPServerRequest(protocol='http', host='', method='POST', uri='/api/tensorboard?XXXX', version='HTTP/1.1', remote_ip='')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.6/site-packages/tornado/web.py", line 1701, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/opt/conda/lib/python3.6/site-packages/tornado/web.py", line 3178, in wrapper
        return method(self, *args, **kwargs)
      File "/opt/conda/lib/python3.6/site-packages/jupyter_tensorboard/api_handlers.py", line 40, in post
        .new_instance(data["logdir"], reload_interval=reload_interval)
      File "/opt/conda/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 221, in new_instance
        purge_orphaned_data=purge_orphaned_data)
      File "/opt/conda/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 44, in create_tb_app
        return application.standard_tensorboard_wsgi(
    AttributeError: module 'tensorboard.backend.application' has no attribute 'standard_tensorboard_wsgi'

After some digging around, latest version of tensorboard does not have that attribute in error above: https://github.com/tensorflow/tensorboard/blob/master/tensorboard/backend/application.py

The latest one I saw was tensorboard==2.2

https://github.com/tensorflow/tensorboard/blob/2.2/tensorboard/backend/application.py .

Simple solution would be to tell users to pip install tensorboard==2.2.

How to isntall Temsorboard extension to Jupyter Lab on AWS EC2?

I want to isntall Temsorboard to Jupyter lab on AWS EC2 but it just doesent works.
I have similar issue to this post.

My issue that I do not want to open up the firewall as some people recommended, because of security concerns. So that answer is not resolving my situation. And I don't see why it cant do any of this because I can download, install, delete, update any packages in general with anaconda and overall the firewall doesent seems to be negatively impacting everywhere else.

Environment

  • EC2 environment
  • Ubuntu 18.04
  • SageMaker instance
  • Anaconda environment

I constantly have this problem that no extension gets installed and works from the extensions. ex.: in the GUI I searched for tensorboard click to install than

Build Recommended
JupyterLab build is suggested:
jupyterlab_tensorboard needs to be included in build

clicked on BUILD

output Build failed with 500, please run 'jupyter lab build' on the server for full output

input: jupyter lab build

OUT:

[LabBuildApp] JupyterLab 1.2.6
[LabBuildApp] Building in /home/ubuntu/anaconda3/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details:  /tmp/jupyterlab-debug-lctnnmuf.log

Error message log:

nano /tmp/jupyterlab-debug-f61pajsv.log

output:

[LabBuildApp] Building in /home/ubuntu/anaconda3/share/jupyter/lab
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Node v6.13.1

[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node /home/ubuntu/anaconda3/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install --non-int$
[LabBuildApp] yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=8.3.0". Got "6.13.1"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[LabBuildApp] npm dependencies failed to install
[LabBuildApp] Traceback (most recent call last):

[LabBuildApp]   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/jupyterlab/debuglog.py", line 47, in debug_$
    yield

[LabBuildApp]   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/jupyterlab/labapp.py", line 98, in start
    command=command, app_options=app_options)

[LabBuildApp]   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 459, in build
    command=command, clean_staging=clean_staging)

[LabBuildApp]   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 660, in build
    raise RuntimeError(msg)

[LabBuildApp] RuntimeError: npm dependencies failed to install

[LabBuildApp] Exiting application: JupyterLab

IN: sudo jupyter lab build

OUT:

Traceback (most recent call last):
  File "/usr/local/bin/jupyter", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/jupyter_core/command.py", line 285, in main
    command = _jupyter_abspath(subcommand)
  File "/usr/local/lib/python3.6/dist-packages/jupyter_core/command.py", line 125, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-lab` not found.

Need help to debug Invalid response: 404 not found error

Hello,

I'm trying to debug "404 not found" error. Because I have no experience about front-end and back-end development, I manage to trace java source code for this extension. And I can't find the location of error log files.
I have doubt the initial 'logdir' default path but.. I don't know.. Can anyone give some advice for me? And how can I find back-end code or error log?

Error message in my terminal:

[W 2021-07-12 21:56:07.392 ServerApp] 404 GET /api/tensorboard?1626094306420 (127.0.0.1) 1.42ms referer=http://localhost:8888/lab

Screen capture of debug in chrome browser:

404error

Cannot Load Tensorboard behind AWS ALB

Hi, I tried hosting JupyterLab and this extension.
However, when I use AWS ALB, I cannot see Tensorboard completely.

Do you have any ideas?

Behind AWS ALB and NGINX

It doesn't work.

スクリーンショット 2019-08-20 16 43 46

Behind Only NGINX (and with Elastic IP)

It correctly works.

スクリーンショット 2019-08-20 16 45 01

Suggestion: An icon for Tensorboard

image

HI, we are developing based on jupyterlab, after installed tensorboard, the name in sidebar is a little bit long and weird, would you please set an icon for Tensorboard. Thank you!!

Building from jupyter/* containers generates error when running apt update

Using a very simple Dockerfile

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
#ARG BASE_CONTAINER=jupyter/scipy-notebook
ARG BASE_CONTAINER=jupyter/tensorflow-notebook
FROM $BASE_CONTAINER

# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN pip install tensorboard

RUN apt-get update --yes
RUN apt-get install --yes --no-install-recommends \
    nodejs npm
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

Building the container results in this error:

#6 14.72 Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.4 kB]
#6 15.16 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [23.3 kB]
#6 15.21 Fetched 26.5 MB in 15s (1,785 kB/s)
#6 15.21 Reading package lists...
#6 16.25 E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
#6 16.25 E: Sub-process returned an error code

Cannot download any data such as chart, json, csv

Problem

I ran jupyterlab within docker.

Afterwards, I started a simple yolov5 training, then tried to download the charts on a Scalar. When I pressed on it, nothing happened.

Dockerfile: https://github.com/NanoCode012/yolov5-jupyterlab/blob/master/Dockerfile

Expected

It downloads the file.

Reproduce

Follow steps on ReadMe to download and run docker

https://github.com/NanoCode012/yolov5-jupyterlab

Next, run python train.py --epochs 3 in a cmd. Open Tensorboard > Scalar > Enable download > Download SVG.

Additional Context

I have not tried in jupyter-tensorboard, but I might as well add this Issue here because it could be related to something here. I don't think there's anything in the logs.

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.