You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we instead detect such magic commands and proactively change the language of the cell.
Something I prototyped some time ago is:
If we have magic commands such as %%sh or %%javascript, then change the langauge of the cell to reflect the language as prescribed by the magic (in this case, change to bash or javascript)
If we have a single liner that starts with !, then this agains is a bash command an we can change the language of the cell again.
This way users get the right syntax highlighting & the appropriate intellisense for the corresponding language as well.
Environment data
Expected behaviour
Cell with bash commands should be rendered without errors.
Actual behaviour
Cell with bash command is rendered as though it is an error:
I'm also using Pylance extension, with may be trying to interpret it as Python code:
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
! mkdir -p results
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)The text was updated successfully, but these errors were encountered: