start_jupyter_cm | Add entries to start IPython
kandi X-RAY | start_jupyter_cm Summary
kandi X-RAY | start_jupyter_cm Summary
Add entries to start IPython from the context menu in Windows
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add jupyter notebooks
- Add the context menu entry for the qtconsole
- Returns the desktop entry
- Generate a Nemo action
- Get file manager configuration
- Creates a script script
- Check if a file manager is supported
- Remove Jupyter
- Removes the key from the registry
- Returns the environment label
start_jupyter_cm Key Features
start_jupyter_cm Examples and Code Snippets
Community Discussions
Trending Discussions on start_jupyter_cm
QUESTION
This older question appears to be out of date.
It used to be (based on reading git repos and the qtconsole issue tracker) you could launch the Jupyter QtConsole without a console window running the background with:
pythonw -m jupyter qtconsole
However, in recent versions of Jupyter, this still launches the background console window.
I am wondering if anyone knows how to launch the QtConsole without the annoying console window. I know you can do this from the Anaconda Navigator program, but I don't want to launch one program so that I can then launch another program. I would prefer to have a simple batch script or even a python script so that I can launch with a Start Menu shortcut
Running the module directly also does not work:
pythonw -c "from qtconsole.qtconsoleapp import main; main()"
This still launches a new console window as in the picture, so I don't really know if this is possible in some straightforward way, or if the Anaconda Navigator is doing some black magic to make this happen
...ANSWER
Answered 2018-Sep-19 at 19:12There are two problems here:
%CONDA_PREFIX%\Scripts\jupyter-qtconsole.exe
marked as console executable (Subsystem
field in PE optional header)- the
-m ipykernel_launcher
subprocess started withpython.exe
even if the launcher was started withpythonw
.- This one I was able to track to
%CONDA_PREFIX%\share\jupyter\kernels\python3\kernel.json
. It uses a full path to the executable thus doesn't trigger the logic injupyter_client\manager.py
that replaces certain patterns withsys.executable
.
- This one I was able to track to
Both of these are specific to Anaconda and do not happen with the stock Python. As such, file a bug against https://github.com/conda-forge/qtconsole-feedstock to get this fixed.
These are the workarounds:
- For the first bug, run
pythonw \jupyter-qtconsole-script.py
which is the script that the.exe
wraps.
(This is Anaconda-specific. Regular Python uses a different wrapping mechanism. Anaconda must be patchingsetuptools
or something.) - For the second one, replace the full path in the aforementioned
kernel.json
with "python
". This change will be overwritten when you update theipykernel
package that this file belongs to (this can be checked by searching for it in%CONDA_PREFIX%\pkgs
).
The OP reports that this solution may break other Anaconda packages. I believe those that break make assumptions about the availability of standard streams. Though it too counts as a bug in my book, it must be coming from the fact that Anaconda packages aren't tested with this setup.
To create a shortcut/batch file to run the above command in Anaconda Prompt environment, see e.g. How to make batch files run in anaconda prompt.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install start_jupyter_cm
You can use start_jupyter_cm like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page