Intel® Quantum SDK
Forum related to Intel Quantum SDK, a full-stack software kit for programming and executing algorithms on simulated quantum hardware.
37 Discussions

Guidepost: Am I stuck using commandline editors?

KevinR_Intel
Moderator
804 Views

The DevCloud hosts two editors directly through SSH; nano and vim. You can try them out by entering their names on the commandline once you have established an SSH connection.

 

The DevCloud does provide some alternative options. If you look here:

https://devcloud.intel.com/oneapi/documentation/connect-with-vscode/
you can find instructions to get your machine's VSCode working in conjunction with the DevCloud.

 

Alternatively, you can use any editor on your local environment if you are willing to add 1 extra-step to your development cycle: copy your source file to your Intel DevCloud home directory after editing with the 'scp' command.

1 Reply
KevinR_Intel
Moderator
757 Views

It is also possible to use a Jupyter notebook interface to edit your source files, summon any Python routines for graphing or visualizing your program's outputs, as well as interacting with the command line.

  1. Open the first terminal session
    1. Run ssh devcloud 
    2. Setup a password for your Jupyter session with: jupyter notebook password
    3. Then start a Jupyter session without the browser : jupyter notebook --no-browser --port=<PORT>. (In my case <PORT> was 8889)
      Watch for any error messages that your selected port was unavailable.
  2. Open the second terminal session to create a tunnel to the same login node on Devcloud. 
    1. Run ssh -L 8080:localhost:<PORT> devcloud
  3. Open a browser on your own PC, and go to the following address : http://localhost:8080/. All the files on the login node should be visible here.
  4. Now we can start a Jupyter notebook and interact with DevCloud exclusively through the browser.
Reply