Can't you use the sublime text console for commands? like "grunt" or "npm install"?
I can trigger the commands from cmd but I would like to do it direct from sublimetext
I've jumped from phpstorm to sublime text for a better user interface.
No, you cannot. The console interface is to Sublime's built-in Python interpreter, it's not a shell.
Related
To clarify, somfile.py needs variables that are generated from main.ipynb. So, when I simply do %run somefile.py I get this error:
NameError: name 'viewer' is not defined
This viewer is defined in the main code above. However, now if I use %load somefile.py and THEN run it, it works fine. But, the whole point of me doing this is to not show the users of my script, the nitty gritty details. I am preparing this for some students.
The documentation of the magic command %run covers use of the -i option to "run the file in IPython’s namespace instead of an empty one." You want to add that flag to your %run command:
viewer = "something"
%run -i my_script.py
It applies to notebook kernel namespace as IPython was incorporated into the IPython notebook, which became the Jupyter notebook project later.
I'm a a novice with Gatling.
I'm running my 1st test on Mac
I've open the recorder in one terminal
I've created a .har file
I've opened user-file in another in another terminal.
I'm trying to run subl RecordedSimulation.scala
I'm getting an error message:
zsh: command not found: subl
I've also done a video for clarity here
This has really nothing to do with Gatling.
subl is the executable for Sublime Text Editor which is simply the text editor the author of the Udemy course you've subscribed uses. You just don't have it (in your path).
Use whatever text editor suites you.
How to add to the Jupyterlab launcher the option to create a text file with .jl extension via an icon?
For instance to write Python .pyfile in the Jupyter editor, there exists a neat jupyter extension: https://github.com/jtpio/jupyterlab-python-file
Any equivalent for Julia, or any work around?
So following the comment above, I adapted thanks to the original author the jupyterlab-python-file npm extension to jupyterlab-julia-file.
To install it please do:
jupyter labextension install #arcticsnow/jupyterlab-julia-file
In Atom text editor, after saving a file, I'd like to have a hotkey like ctrl-alt-b that will run "npm build" and display the results in an embedded terminal.
I'm also hoping that after seeing the terminal output, I'd be able to click anywhere outside that embedded terminal to make it go away, (instead of having to mouse-travel to some small exit button and click it).
It may be relevant to mention that my OS is Ubuntu 16.04.5.
I did find a really nice tool called the atom build package, but it seems to take over the whole build process, which is something I've already got setup via "npm build".
Setting up a hotkey is the trivial part, but you need some package that provides the actual build command. You can add something like the following to your Atom keymap:
'atom-workspace atom-text-editor:not([mini])':
'ctrl-alt-b': 'package-name:command-name'
Other than that, I recommend using a general purpose package like process-palette. It lets you define a command (or a chain of commands) and run it in your project directory at the press of a custom hotkey.
I write my .py files using Pycharm JetBrains editors. When I run my codes, the output is shown in a console entitled "Run", without any prompt. Therefore, I dont have access to the variables of my code output. How can I force the pycharm to show the output of my codes in ipython console?
You can edit the Run Configuration and check the box "Show command line afterwards". This will run your script, but leave you in an interactive prompt. Everything from your script will have been imported and available.
As a note, if you install the IPython package (Preferences -> Project -> Project Interpreter, click + to add packages) then you can get a nicer console interpreter.
Finally, a different way to accomplish what you are looking for: run under Debug rather than Run. You can set a breakpoint and then use the debugger's Console right at the line you might be interested in.