question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run shell commands

See original GitHub issue

IPython kernel provides a way to run shell commands in code blocks https://jakevdp.github.io/PythonDataScienceHandbook/01.05-ipython-and-shell-commands.html#Shell-Commands-in-IPython

!echo "Hello"

I run the jupyter notebook as docker run --rm -it -p 8888:8888 -p 4040:4040 -p 9001:9001 -e JUPYTER_ENABLE_LAB=yes -v ${PWD}:/home/jovyan/work pavolloffay/trace-dsl:latest. The command is run in a directory with a library so it is injected into the container. Then I do changes to the library in local IDE running on the host and to load the changes in the notebook I have to run maven install.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
frankfliucommented, Nov 21, 2019
1reaction
pavolloffaycommented, Nov 12, 2019

I don’t mind how it is done. I just need this feature, It can be with %sh or other alternatives.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Execute a Command with a Shell Script in Linux
Creating and Running a Basic Shell Script · Press ESC · Type : (colon character) · Type wq · Press ENTER.
Read more >
How To Run the .sh File Shell Script In Linux / UNIX - nixCraft
GUI method to run .sh file · Select the file using mouse. · Right-click on the file. · Choose Properties:.
Read more >
How do I run .sh scripts? - command line - Ask Ubuntu
Open terminal · Open the folder containing the .sh file · Drag and drop the file into the terminal window · The file's...
Read more >
Running commands in the shell - PowerShell | Microsoft Learn
The PowerShell call operator ( & ) lets you run commands that are stored in variables and represented by strings or script blocks....
Read more >
How to Run a Shell Command in Java - Baeldung
How to Run a Shell Command in Java · Shell commands are OS-dependent as their behavior differs across systems. · NOTE: JDK 18...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found