Giter Club home page Giter Club logo

Comments (22)

henrymj avatar henrymj commented on May 31, 2024 1

Yes! Sorry for my delay - the command worked excellently.

from forward.

henrymj avatar henrymj commented on May 31, 2024 1

Yes, that is what I see in my config!

from forward.

henrymj avatar henrymj commented on May 31, 2024 1

Hi @vsoch, we weren't able to solve the issue, but have created a work around - finding when to run a separate pydeface.sh script. I think I will close the issue - it seems to be an issue separate from the jupyter notebook, which is working great!

from forward.

vsoch avatar vsoch commented on May 31, 2024

I’m on East Coast time so I’m off to bed, but if you can share the commands you’ve tried so far I can give you a script to try early tomorrow.

from forward.

vsoch avatar vsoch commented on May 31, 2024

Oh! And in case you weren’t aware, we also can offer Sherlock on demand https://www.sherlock.stanford.edu/docs/user-guide/ondemand/

from forward.

henrymj avatar henrymj commented on May 31, 2024

I've only tried loading the python3 module, and then running bash start.sh jupyter, but it hasn't been successful so far. Thank you for your help & go to sleep!

from forward.

vsoch avatar vsoch commented on May 31, 2024

okay here is what I just did. First I logged in with ssh sherlock (after setup of my ~/.ssh/config based on the instructions in this repository). This is to ensure that we can communicate cleanly.

ssh sherlock

Once that worked, I checked the latest version of Python on sherlock, which is python/3.6.1 (as a module). The version of jupyter hasn't changed either py-jupyter/1.0.0_py36.

So - we already have a script setup for that, I ran this:

$ bash start.sh sherlock/py3-jupyter 

And everything seemed ok - logs don't have any errors, but I think the admins on Sherlock (mainly Kilian) must have disabled this ability because I get a connection refused. I tried the same workflow with VPN, same response. Everyone is sleeping over there in CA but I'll check in with them and ping you with an update here with anything I learn. Unfortunately sometimes security standards get hardened so you can no longer use simple tools like forward :/

In the meantime, check out Sherlock On Demand, minimally I think you can request a notebook.

from forward.

henrymj avatar henrymj commented on May 31, 2024

Thank you! I must have missed that in the documentation. I've been able to use forward with the original jupyter command, so hopefully i will be able to use this one as well.

from forward.

vsoch avatar vsoch commented on May 31, 2024

Fantastic! Fingers crossed that it works ok - my issue might have been that I’m off campus.

from forward.

vsoch avatar vsoch commented on May 31, 2024

Did you get it working @henrymj? Can we close the issue?

from forward.

henrymj avatar henrymj commented on May 31, 2024

Hi,

I'm now running into a related issue. Though the notebook is running a python 3 kernel, we are struggling to use pydeface (via subprocess.call). It seems like we can't load python/3.6.1 to the compute node that the notebook is running on, which we need for pydeface to work.

We tried logging onto the compute node and loading python3 using ml python/3.6.1, but it did not change the results of python --version. Do you have any suggested work arounds?

Thank you!

from forward.

vsoch avatar vsoch commented on May 31, 2024

This particular script already has that module loaded. Take a look at the file to see. If you want to load other modules, edit the file.

from forward.

henrymj avatar henrymj commented on May 31, 2024

I see that - I guess I am confused why the jupyter terminal that I open in the compute node still says I am running python 2.7.5 when I try python --version

from forward.

vsoch avatar vsoch commented on May 31, 2024

python on sherlock is either python (2) or python3 (python 3) so you'd want to do python3 --version.

from forward.

vsoch avatar vsoch commented on May 31, 2024

@henrymj the module to load Jupyter (at least when I tested a long time ago!) should load python again (3), which is why the script does this:

module load py-jupyter/1.0.0_py36
jupyter notebook --no-browser --port=$PORT

but if it's the case that it's not loading python3, could you please try adding the ml python command to that script and try again?

I suspect if you are using subprocess you just need to target python3 instead of python though.

from forward.

henrymj avatar henrymj commented on May 31, 2024

Thank you, I will try that tomorrow and update you asap.

from forward.

vsoch avatar vsoch commented on May 31, 2024

okay sounds good! It might be helpful to login to an interactive node, and then load the jupyter module manually and check the python versions you have on your path. It could be that you have another loaded. Afaik jupyter should detect the kernels available but maybe that's not the case. Let me know what you learn! I can try to help more after that.

from forward.

vsoch avatar vsoch commented on May 31, 2024

hey @henrymj a quick question for you - are you using the version before or after this commit? https://github.com/vsoch/forward/pull/32/files (e.g., look at the ssh config generation and see if it uses a hash or not). We are having users report issues with the ssh forward and I want to figure out if this change did it. Thanks!

from forward.

henrymj avatar henrymj commented on May 31, 2024

Mine seems to be the newer version with %C ! I hope this is helpful

from forward.

vsoch avatar vsoch commented on May 31, 2024

yes thank you! And this is what you see in your ~/.ssh/config as well? (e.g., you could have generated it before pulling to get the updated version, which wouldn't touch your original generation).

from forward.

neutrinonerd3333 avatar neutrinonerd3333 commented on May 31, 2024

Following this issue as author of #32 — curious what issues that PR may have caused!

from forward.

vsoch avatar vsoch commented on May 31, 2024

@neutrinonerd3333, @henrymj reports that it worked previously with the change, so that suggests that it isn't it? But you never know...

from forward.

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.