GithubHelp home page GithubHelp logo

XQuartz version and numpy? about vcs HOT 18 OPEN

cdat avatar cdat commented on June 1, 2024 1
XQuartz version and numpy?

from vcs.

Comments (18)

doutriaux1 avatar doutriaux1 commented on June 1, 2024

@scottwittenburg @danlipsa

I get:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
ERROR: In ../Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 761
vtkXOpenGLRenderWindow (0x55ec3e3c17e0): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.

Nothing to do about it except nox version, correct?

from vcs.

durack1 avatar durack1 commented on June 1, 2024

@scottwittenburg @danlipsa @doutriaux1 @downiec @forsyth2 @muryanto1 I am hunting around for a solution to #430 and it seems that the only "solution" is to use the mesa build, which defeats the purpose of what I am trying to use vcs for, interactive plotting of in memory objects whilst debugging a script. It really would be great if a solution is available for interactive plotting. The environment I am using is RHEL7 and VNC

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

jupyter-notebook are not the best, but a great way around when using mesa. They will show you the picture.

from vcs.

durack1 avatar durack1 commented on June 1, 2024

@doutriaux1 thanks, I am trying to debug a script which is not implemented in a jupyter notebook, rather I am just running this (with pdb) in the terminal. It would be preferable to me if I can just enable VCS interactively, however it that's not possible I'll just have to forget about vcs altogether and go to matplotlib or equivalent. It's a pity though, as VCS deals with CMIP5/6/ ocean grids far better than other packages

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

you do know you can copy/paste your script into a new notebook? Then use split cell to run only the buggy section of your script. It's actually faster than regular prompt debugging.

from vcs.

durack1 avatar durack1 commented on June 1, 2024

@doutriaux1 I know this exists somewhere, but how do I initialize a jupyter notebook on one of our workstations?

Is there a better way than:

(cdat82Py3) bash-4.2$ jupyter-notebook
[I 14:03:53.960 NotebookApp] [nb_conda_kernels] enabled, 3 kernels found
[I 14:03:53.965 NotebookApp] Writing notebook server cookie secret to ~/.local/share/jupyter/runtime/notebook_cookie_secret
[I 14:03:54.150 NotebookApp] [nb_conda] enabled
[I 14:03:54.150 NotebookApp] Serving notebooks from local directory: /export/durack1
[I 14:03:54.150 NotebookApp] The Jupyter Notebook is running at:
[I 14:03:54.150 NotebookApp] http://localhost:8888/?token=cea46eeb925008ffd92dfb02929fec0dcf297
[I 14:03:54.150 NotebookApp]  or http://127.0.0.1:8888/?token=cea46eeb925008ffd92dfb02929fec0dcf297
[I 14:03:54.150 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:03:54.195 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///export/durack1/.local/share/jupyter/runtime/nbserver-113648-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=cea46eeb925008ffd92dfb02929fec0dcf297
     or http://127.0.0.1:8888/?token=cea46eeb925008ffd92dfb02929fec0dcf297

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

@downiec has it setup . It's our vcdat. You can specify any kernel you want once you're at the url. @downiec what's the URL for jupyter-vcdat on Paul's machines

from vcs.

downiec avatar downiec commented on June 1, 2024

@doutriaux1 Are you talking about jupyter-vcdat setup in Jupyterhub which is hosted on nimbus?

from vcs.

downiec avatar downiec commented on June 1, 2024

I don't have vcdat setup/installed on other machines right now, but if the machine has docker available, there's a docker image that can be run which has vcdat, jupyterlab and notebooks setup in it.

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

nimbus should work for @durack1 he wants to be able to connect to a jupyterlab running on a remote machine from his local machine.

from vcs.

downiec avatar downiec commented on June 1, 2024

@doutriaux1 Yes, in that I can add him to the group on github so he can access it. @durack1 I set you an invitation to the group and will email you how to access it.

from vcs.

durack1 avatar durack1 commented on June 1, 2024

@doutriaux1 is this what you'd expect with a cdat82py3 instance that has not enabled mesa on env creation:
Screen Shot 2019-12-19 at 3 20 12 PM

from vcs.

durack1 avatar durack1 commented on June 1, 2024

@doutriaux1 it seems that there is a vcs graphics object created, but I just can't see it, no matter how I try and go about using it..

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

try this

from IPython.core.display import display
d = x.plot(climSlice)
display(d)

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

of course with pdb, you're interupting before anything is drawn so you can't see an image yet.

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

but the dispaly will force ipython to dispaly the object, otherwise it only disaplys it if it's the last thing in the cell, which it is not here since pdb is asking you a question

from vcs.

durack1 avatar durack1 commented on June 1, 2024

@doutriaux1 I was hoping this would work, but no cigar:
Screen Shot 2019-12-19 at 3 45 42 PM

from vcs.

doutriaux1 avatar doutriaux1 commented on June 1, 2024

maybe display is used by pdb. try

from IPython.core.display import display as display_ipython
...
display_ipython(d)

from vcs.

Related Issues (20)

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.