Using riskscape in Jupyter

Hi Riskscape developers,

I’m trying to use riskscape in VS Code, using Jupyter Notebooks. I’ve attached a screenshot of the error message I get when trying to run a small cell using riskscape commands.

Thank you!


Hi Alana,

It looks like you’re mixing up Linux and Windows commands there - the sudo command (as far as I know at least) doesn’t exist on Windows. Try removing it and have another go.

Having said this, I would suggest you get RiskScape set up and working without VSCode/Jupyter to begin with by following the install guide and verifying you can run RiskScape from a new command prompt (or powershell) by just entering riskscape. Once you can do that, you should also be able to do it within VSCode’s terminal.

As an added extra, someone noticed that the indenting in the vulnerability python function in your screenshot is a bit messed up. You’ll need to fix that to use it. Also, if you usually use python on your computer, you might want to consider using RiskScape’s support for it, rather than using Jython. Something to consider once you’ve fixed your immediate problem :slight_smile:

Let us know how you get on,