← Back to team overview

linux-traipu team mailing list archive

[Bug 1959417] Re: unable to use jupyter-notebook package with snap'd browsers like firefox or chromium

 

Unfortunately this is by design: the snapd "home" interface allows
access to all files in a user's home, except from the "snap" dir and all
toplevel hidden directories. So,

    ~/.i/love/dot/folders

is not allowed, but

    ~/i/.love/dot/folders

is. The point is that toplevel hidden directories in your home dir generally do not contain user data, but configuration, cache, and other data which we generally don't want applications to mess with.
I wonder if we should make an exception for "~/.local/", though, since that generally contains data which could potentially be useful for applications.

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Chromium Browser.
https://bugs.launchpad.net/bugs/1959417

Title:
  unable to use jupyter-notebook package with snap'd browsers like
  firefox or chromium

Status in Chromium Browser:
  New
Status in Mozilla Firefox:
  New
Status in snapd:
  New
Status in chromium package in Ubuntu:
  New
Status in firefox package in Ubuntu:
  New
Status in jupyter-notebook package in Ubuntu:
  New
Status in snapd package in Ubuntu:
  New

Bug description:
  Steps to reproduce:
  1. Install Ubuntu 22.04 LTS
  2. Install jupyter-notebook package
  3. Open terminal to launch jupyter-notebook command

  $ jupyter-notebook
  [I 18:53:12.601 NotebookApp] Serving notebooks from local directory: /home/j
  [I 18:53:12.601 NotebookApp] Jupyter Notebook 6.4.5 is running at:
  [I 18:53:12.601 NotebookApp] http://localhost:8888/?token=6df6a314b44a50e058ff27f735d91cbd46bfaf0e403bd2e9
  [I 18:53:12.601 NotebookApp]  or http://127.0.0.1:8888/?token=6df6a314b44a50e058ff27f735d91cbd46bfaf0e403bd2e9
  [I 18:53:12.601 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
  [C 18:53:12.635 NotebookApp] 
      
      To access the notebook, open this file in a browser:
          file:///home/j/.local/share/jupyter/runtime/nbserver-45601-open.html
      Or copy and paste one of these URLs:
          http://localhost:8888/?token=6df6a314b44a50e058ff27f735d91cbd46bfaf0e403bd2e9
       or http://127.0.0.1:8888/?token=6df6a314b44a50e058ff27f735d91cbd46bfaf0e403bd2e9


  
  Expected results:
  * default web-browser opened and it shows jupyter-notebook interface after redirection from local html-file to http://localhost:8888

  
  Actual results:
  * default web-browser opened with error message

  > Access to the file was denied
  > The file at /home/j/.local/share/jupyter/runtime/nbserver-45601-open.html is not readable.
  > It may have been removed, moved, or file permissions may be preventing access.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: jupyter-notebook 6.4.5-4
  ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
  Uname: Linux 5.15.0-18-generic x86_64
  ApportVersion: 2.20.11-0ubuntu76
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: MATE
  Date: Fri Jan 28 18:49:44 2022
  InstallationDate: Installed on 2022-01-28 (0 days ago)
  InstallationMedia: Ubuntu-MATE 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220128)
  PackageArchitecture: all
  SourcePackage: jupyter-notebook
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.default.apport:
   # set this to 0 to disable apport, or to 1 to enable it
   # you can temporarily override this with
   # sudo service apport start force_start=1
   enabled=0
  mtime.conffile..etc.default.apport: 2022-01-28T14:45:41.897765

To manage notifications about this bug go to:
https://bugs.launchpad.net/chromium-browser/+bug/1959417/+subscriptions