Terminal window in Jupyter notebook is not getting launched - terminal

I am trying to open terminal in Jupyter notebook, it will appear for 2 seconds and it disappears immediately. Please help me on this.

I am guessing you are trying to open terminal by the following method?
If so, try restarting jupyter. That always seems to clear any issues for me.
Else, try using the %%bash or ! cell magics inside of a notebook in order to use the terminal.

Related

Can't open terminal in VSCode Python on macOS

I can't open my terminal in VSCode for some reason. Whenever I try to open it, it immediately closes. I can open the other parts of my console like "problems" or "output" but not terminal.
I saw a bunch of comments from people who experienced the same issue previously about changing their settings.json, specifically the osx profiles part, but it didn't work for me. I was trying to run and debug a python code I wrote through flask when this problem occurred. Here's my settings page.
my settings.json page
I also deleted all the codes in between the parentheses to get the default settings because I saw some other people do it on here, but that didn't work either. What can I do?
I use macOS 12.0.1.
I'm 15 and have just started learning back-end development on my own, so I would really appreciate if you guys could provide a "results" code snippet or image so that I can check whether I'm doing it right.

I cannot use any feature of anaconda despite uninstalling and reinstalling

enter image description hereIt would be great if someone could help me. I have uninstalled and reinstalled anaconda and miniconda and nothing works. Everything installs and shows up in the start menu, but when I click on navigator or Jupyter or spider, the command window flashed on for a second and nothing happens.
This is pretty spooky that no one else seems to have this problem. I even tried to uninstall python because I got a error that said a python38.dll was interfering with something or other, but guess what, python doesn't show up in my apps list so how am I supposed to delete it? Neverthless, if I type in "python" into the command window, sure enough, the three arrows show up and I can print 'hello world,
so wtf?
Please help,
Paul

Launch Jupyter Notebook in windows without command window

Is it possible to launch jupyter notebook without command console, i.e, without typing jupyter notebook and having a command window in your opened programs. I have made a batch file which I double-click to open the jupyter notebook. However, this step opens a command window and prints all the communication between jupyter and python processes. I want to eliminate this commandline window.
Instead of a batch file, one can use a shortcut.
To hide terminal you can run python scripts with pythonw.exe instead of python.exe. So I changed the Jupyter shortcut which was created after Anaconda installation accordingly. Mind that shortcut's Target field may have multiple python.exe instances, like the following:
C:\ProgramData\Anaconda3\pythonw.exe C:\ProgramData\Anaconda3\cwp.py C:\ProgramData\Anaconda3 C:\ProgramData\Anaconda3\pythonw.exe C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py "%USERPROFILE%/"
Shortcut window screenshot
This thread seems to be the first to appear when googling the problem.
My solution is for Anaconda users: Launch Jupyter from the Anaconda navigator. You won't have to keep an open CMD window, as upon exiting the navigator you are given the option to close or not close Jupyter.
It appears from the following questions that what you want to do is tricky in windows:
https://superuser.com/questions/62525/run-a-batch-file-in-a-completely-hidden-way
How to call CMD without opening a window
Each of these questions has various work-arounds presented in the answers, each with their pros and cons. Perhaps one of them will meet your needs.
I use RBTray to right click the minimize button and have the window go hide in the system notification tray.

"open" command doesn't work properly inside tmux

I am trying to use the open command to open a link in Chrome from my terminal.
It works fine in plain Terminal.app or iTerm2, but doesn't work properly from tmux. What happens is: it opens a new instance of Chrome (rather than opening a new tab) and doesn't actually go to the URL.
Is there any fix for this? The reason I need this functionality is for running Mutt with urlview to open the links from emails.
Thanks.
This sounds like a problem that could be solved by installing reattach-to-user-namespace.
If you don't wanna get deep into manually solving this problem you can use one of the tmux plugins:
tmux-urlview looks like exactly what you're looking for
another solution is to use tmux-copycat + tmux-open

Unable to open an existing notebook in IPython Notebook

I want to open a notebook, say 'IPython - beyond normal Python'. To achieve this, I perform the following steps, in order.
Move to the place where IPython Notebook is installed.
cd to 'Notebooks'. iPython dashboard opens in a browser with list of available notebooks.
Click on the desired notebook.
The third step opens a new tab, but I can't see the contents of the notebook. A screen shot of what appears under that tab is shown below.
How can I see the contents of the notebook?
I would say that the notebook format is v3 and you are running IPython v0.12 that only read notebook v3. There is a warning message in newer versions if the notebook version is more recent than IPython.
Also IPython, not iPython if possible.

Resources