Giter Site home page Giter Site logo

jupyter-postgres-demo's People

Contributors

psychemedia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jupyter-postgres-demo's Issues

Running postgres in repo2docker / Binderhub containers

postgres likes running under postgres user or root.

The dockerfile-omero rewrites permissions over the /run/postgresql/ directory to allow joyvan to start postgres explicitly.

The sudoers branch gives jovyan elevated sudo privileges so that it can start the postgres service.

The master branch is broken: the postgres server can't be started.

Running pgadmin in Mybinder

Via Jupyter discouse site [thread], h/t @betatim for debug strategy:

With a bit of editing of pgAdmin4.py to get it to log at DEBUG level to the console and starting it from a console I see that it sends 302 redirect to /browser when you first visit it at ../proxy/5050/. This request then ends up with a 404 because of the leading / in the redirect location.

If instead you navigate to .../proxy/5050/browser/ (with trailing slash) there is no 302 redirect and you get to see a bit of HTML produced by pgAdmin. However the JS doesn’t load because the paths all start with a / that make them absolute.

The missing puzzle piece is how to configure pgAdmin4 (a flask app) to understand that it is being served from a URL prefix. I can’t make that work. It is a general problem that I have with flask apps :-/

And @manics for getting pgadmin working (#2).

PgAdmin and server mode

I've been working on setting up a postgres+jupyterlab image, and this repo has been the gift that keeps on giving, so thanks for all the hard work @psychemedia and @manics!

I'm looking at some of the archaeology of your efforts to get pgadmin4 running, and I see that at some point you stopped trying to disable SERVER_MODE. As I'm going through the same contortions right now, I thought I'd ask about it here. Is there a reason you couldn't get SERVER_MODE=False working? I'd like to avoid an additional user login if at all possible. Also, why did you start serving the application with gunicorn rather than its built-in server?

Any insight would be appreciated.

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.