lgeiger / hydrogen-launcher Goto Github PK
View Code? Open in Web Editor NEW:rocket: Launch terminals and jupyter consoles connected to hydrogen
Home Page: https://atom.io/packages/hydrogen-launcher
License: MIT License
:rocket: Launch terminals and jupyter consoles connected to hydrogen
Home Page: https://atom.io/packages/hydrogen-launcher
License: MIT License
How to launch jupyter consoles connected to Hydrogen inside PlatformIO IDE Terminal?
Can you show me of your setting?
Hi, I am using hydrogen to connect on a remote jupyter notebook.
Unless I am mistaken, the launcher doesn't support this (or at least it doesn't work for me). Is that something that could be addressed in the long term?
Steps to reproduce:
Atom: 1.43.0 x64
Electron: 4.2.7
OS: Ubuntu 18.04.4
Thrown From: hydrogen-launcher package 1.2.2
Uncaught TypeError: Cannot read property 'getPath' of undefined
At /home/pamotis/.atom/packages/hydrogen-launcher/lib/main.js:154
TypeError: Cannot read property 'getPath' of undefined
at Object.getCWD (/packages/hydrogen-launcher/lib/main.js:154:56)
at Object.launchTerminal (/packages/hydrogen-launcher/lib/main.js:73:35)
at HTMLElement.hydrogenLauncherLaunchTerminal (/packages/hydrogen-launcher/lib/main.js:38:55)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:349290)
at Object.didConfirmSelection (/usr/share/atom/resources/app/static/<embedded>:11:699460)
at SelectListView.confirmSelection (/usr/share/atom/resources/app/static/<embedded>:11:874785)
at HTMLDivElement.core:confirm (/usr/share/atom/resources/app/static/<embedded>:11:869664)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:349290)
at KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:1253549)
at KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/static/<embedded>:11:1249683)
at WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/static/<embedded>:11:284496)
5x -1:45.7.0 core:backspace (input.hidden-input)
-1:43.8.0 editor:consolidate-selections (input.hidden-input)
-1:43.8.0 core:cancel (input.hidden-input)
-1:33.4.0 bracket-matcher:go-to-matching-bracket (input.hidden-input)
-1:32.5.0 settings-view:open (input.hidden-input)
-1:32.2.0 key-binding-resolver:toggle (div.panels-item)
-1:32 settings-view:open (atom-pane.pane.active)
-0:14.2.0 command-palette:toggle (input.hidden-input)
19x -0:12.2.0 core:move-down (input.hidden-input)
18x -0:10.6.0 core:move-up (input.hidden-input)
6x -0:09.4.0 core:move-down (input.hidden-input)
-0:08.5.0 core:move-up (input.hidden-input)
4x -0:08.3.0 core:move-down (input.hidden-input)
-0:06.0 core:move-up (input.hidden-input)
-0:05.5.0 core:confirm (input.hidden-input)
-0:05.5.0 hydrogen-launcher:launch-terminal (input.hidden-input)
atom-beautify 0.33.4
atom-ide-ui 0.13.0
atom-runner 2.7.1
file-icons 2.1.38
highlight-selected 0.17.0
Hydrogen 2.8.0
hydrogen-launcher 1.2.2
ide-python 1.5.0
script 3.25.0
vk-terminal 3.0.1
Similar to #4, I'm again getting an error when working in a directory with a space, this time for Hydrogen Launcher: Launch Jupyter Terminal
. I think it used to work without the error (#4 suggests as much). hydrogen-launcher 1.10.0, Atom 1.12.7, OS X 10.10.5.
After running Hydrogen Launcher: Launch Jupyter Terminal
I get the following:
/Users/dnowacki/.atom/packages/hydrogen-launcher/node_modules/term-launcher/cmd-script.sh ; exit;
/Users/dnowacki/.atom/packages/hydrogen-launcher/node_modules/term-launcher/cmd-script.sh: line 2: cd: /Users/dnowacki/Documents/Space: No such file or directory
Jupyter Console 4.0.3
[ZMQTerminalIPythonApp] Loading IPython extension: storemagic
In [1]: pwd
Out[2]: u'/Users/dnowacki/Documents/Space Dir/py'
i.e. I get a no such file or directory error when launching the terminal, but the Jupyter console starts in the correct directory (with space) anyway.
Is there a way to prevent the kernel from shutting down when the console is closed?
Hello,
When I try to launch any launcher, I got the following Error:
the filename, directory name, or volume label syntax is incorrect
Any ways to solve this problems?
I am trying to force hydrogen-launcher to launch a qtconsole rather than console through the PlatformIO Terminal and edited the settings to force qtconsole
rather than console
in the Jupyter Console section. However (even after a restart of Atom), it still launches an ordinary console.
Is there something I'm missing, or is it behaving incorrectly?
The reason I want to use qtconsole is so (hopefully) I can utilize the qt backend for plots rather than having them embedded or having them pop out with some weird backend (right now, they just show up in preview on macOS). Hopefully I'm doing this right..
The error message:
jyuan@jyual0 MINGW64 ~/github/project (master)
$ jupyter console --existing C:\Users\jyuan\AppData\Roaming\jupyter\runtime\kernel-144118ba-71d0-4e29-964c-3272b5b640a0.json
\kernel-144118ba-71d0-4e29-964c-3272b5b640a0.json n file C:UsersjyuanAppDataRoamingjupyterruntimekernel-144118ba-71d0-4e29-964c-327
[ZMQTerminalIPythonApp] CRITICAL | Could not find existing kernel connectio
n file C:UsersjyuanAppDataRoamingjupyterruntimekernel-144118ba-71d0-4e29-96
4c-3272b5b640a0.json
I'm on Windows 10 using git's BASH emulation. When launching a console using Ctrl + Alt + Shift + J
the backslashes are not escaped, resulting in unexpected behavior.
...when trying to launch a jupyter console (with or without PlatformIO terminal). Hydrogen runs fine. This occurs for any python script. Any thoughts?
I installed a new kernel using a specific conda environment. When running scripts with Hydrogen it lets me choose the kernel and works just fine. If I type Hydrogen Launcher: Launch Jupyter Console
or Hydrogen Launcher: Launch Jupyter Console in Platformio Terminal
it opens in my conda base environment and not the same environment the script is running in.
How do I launch a Jupyter console in the same kernel and environment as my script is running in?
to support use of pdb.set_trace() it would be beneficial to be able to send code chunks to the terminal rather than to the kernel. I propose a toggle that determines the destination of existing hydrogen run commands.
[Enter steps to reproduce:]
Atom: 1.47.0 x64
Electron: 5.0.13
OS: Microsoft Windows 10 Pro
Thrown From: hydrogen-launcher package 1.2.2
Failed to load the hydrogen-launcher package
At Cannot find module 'term-launcher'
Require stack:
- C:\Users\hp\.atom\packages\hydrogen-launcher-master\lib\main.js
- C:\Users\hp\AppData\Local\atom\app-1.47.0\resources\app.asar\static\index.html
Error: Cannot find module 'term-launcher'
Require stack:
- C:\Users\hp\.atom\packages\hydrogen-launcher-master\lib\main.js
- C:\Users\hp\AppData\Local\atom\app-1.47.0\resources\app.asar\static\index.html
at Module._resolveFilename (internal/modules/cjs/loader.js:683:15)
at Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/electron.asar/common/reset-search-paths.js:43:12)
at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:155434)
at Module.require (/app.asar/static/index.js:61:43)
at require (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
at /packages/hydrogen-launcher-master/lib/main.js:7:21)
at /packages/hydrogen-launcher-master/lib/main.js:158:32)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:150998)
at Module.load (internal/modules/cjs/loader.js:701:32)
at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
at Function.Module._load (internal/modules/cjs/loader.js:625:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:14:16)
at customRequire (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:1:735013)
at Package.requireMainModule (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3310163)
at ~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3296703
at Package.measure (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3295535)
at Package.load (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3296276)
at PackageManager.loadAvailablePackage (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:381312)
at ~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:379735
at Config.transact (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:331800)
at PackageManager.loadPackages (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:379673)
at ~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:1:755624
at async Promise.all (index 0)
at AtomEnvironment.startEditorWindow (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:1:757663)
atom-material-syntax 1.0.8
atom-material-ui 2.1.3
hydrogen-cell-separator 0.4.1
hydrogen-launcher 1.2.2
hydrogen-python 0.0.8
I have Hydrogen v.2.13.1 running, hydrogen-launcher v1.2.2 and platformio-ide-terminal v2.10.0 installed. When trying to launch Jupyter console in platformio terminal a prompt appears saying Hydrogen v1.0.0+ has to be running. What can I do about this?
Edit: I realize this was a known issue and a similar issue was resolved back in 2016 but I am still suffering from the same problem could I be doing something wrong?
When I try to do (Run all, Run all above), only the local kernels are listed.
It would be good to support remote kernels for (Run all, Run all above).
Hello,
Would it be possible to add support to Jupyter QT-console?
Thanks
Ubuntu 20.04.2 LTS
Atom 1.56.0
Hydrogen 2.15.3
hydrogen-laucher 1.2.2
When calling the jupyter console from an Atom project, the terminal window pops up and disappears immediately.
Running
> gnome-terminal
> jupyter console
in a terminal works perfectly.
The following lines are written in /var/log/syslog
when I try to open the jupyter console from Atom.
Apr 27 21:01:24 ******** systemd[1801]: vte-spawn-6f68d64f-9355-4bfa-af5f-5109224296d3.scope: Failed to add PIDs to scope's control group: No such process
Apr 27 21:01:24 ******** systemd[1801]: vte-spawn-6f68d64f-9355-4bfa-af5f-5109224296d3.scope: Failed with result 'resources'.
Apr 27 21:01:24 ******** systemd[1801]: Failed to start VTE child process 27298 launched by gnome-terminal-server process 23213.
Apr 27 21:01:24 ******** systemd[1801]: vte-spawn-9c9991af-60ee-4eef-af00-5d44f1810851.scope: Failed to add PIDs to scope's control group: No such process
Apr 27 21:01:24 ******** systemd[1801]: vte-spawn-9c9991af-60ee-4eef-af00-5d44f1810851.scope: Failed with result 'resources'.
Apr 27 21:01:24 ******** systemd[1801]: Failed to start VTE child process 27299 launched by gnome-terminal-server process 23213.
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
OS X 10.10.5, Atom 1.11.2, hydrogen-launcher 1.0.2
Hydrogen Launcher: Launch Terminal
gives an error if your project directory contains a space:
Command failed: open -a Terminal.app /Users/dnowacki/Documents/Space Dir/py The files /Users/dnowacki/Documents/Space and /Dir/py do not exist.
(Needs enclosing quotes around full path)
Hydrogen Launcher: Launch Jupyter Console
works OK with a space, however (and is the real reason I paid the price of admission 👍 )
Say I launch:
"Hydrogen Launcher: Launch Jupyter Console in Platformio Terminal"
I now have two "windows": the original one for editing my python code, and the new one running the terminal running the Jupyter console.
How can I navigate between them using only the keyboard?
I am using hydrogen launcher 1.2.2 and hydrogen 2.8.9.
When running a python program, the output is either inlined or written into the "Hydrogen output Area" in case that "View outoput in the dock by default" is selected in the hydrogen option.
The Hydrogen output area can not be opened in a separate window! So I can not make use of two screens, what is really annoying. That could be solved by redirecting the output to on other terminal.
Also the "Hydrogen output Area" is a non "interactive python terminal".
Therefore I installed hydrogen-launcher. I can now use the Ipython consol, but the output is still written to the "Hydrogen output Area"!
Is it possible to redirect the output to the hydrogen-launcher Ipython consol?
Hey, so I was under the impression that I could use hydrogen launcher to start/read/execute jupyter notebooks, but it always just says "No running kernel for grammar JSON found" so I guess that is not accurate? Or am I doing it wrong?
The console works for me. However, after closing the terminal once. If I try to open it again, it times out and I cannot reopen another linked console unless I restart Atom. The error message I get is, "RuntimeError: Kernel didn't respond to kernel_info_request" This isn't a huge issue, but I thought I might bring it to your attention. I installed jupyter using Homebrew, https://formulae.brew.sh/formula/jupyter.
Jupyter currently doesn't launch since the newer versions of Hydrogen.
if I declare a variable then try print(x) it says x not defined. It is, and works everywhere but for when I launch the Hydrogen launcher.
Just a heads up.
Nevertheless I don't see any active fork for the moment.
Although still immature I guess the atom-ide terminal emulator could be a more stable target in the future.
Is there a way to automate the launching of jupyter console in the platformio terminal at the start with atom? Or even better, just attach it permanently to atom? I find it incredibly useful to have it open all the time.
Argument to path.dirname
must be a string
Object.dirname (/Applications/Atom.app/Contents/Resources/app/src/electron-shims.js:9:10)
Object.getCWD (/Users/eacabbi/.atom/packages/hydrogen-launcher/lib/main.js:178:103)
Object.launchTerminal (/Users/eacabbi/.atom/packages/hydrogen-launcher/lib/main.js:99:56)
HTMLElement.hydrogenLauncherLaunchTerminal (/Users/eacabbi/.atom/packages/hydrogen-launcher/lib/main.js:52:22)
CommandRegistry.handleCommandEvent (<embedded>:22091:35)
<unknown> (<embedded>:21829:65)
When trying to start the launcher (in an external terminal, or a Platformio terminal) on a Windows system where the username contains a space, a command like the following is executed:
jupyter console --existing C:\Users\User Name\AppData\Roaming\jupyter\runtime\kernel-13f12759-8581-405d-a8b2-2207ba9fdac7.json
This results in an error, as C:\Users\User
does not exist and is not the path to a kernel.
I was able to fix this simply by adding a pair of quotation marks around the file path, which I did by changing line 158 in hydrogen-launcher\node_modules\term-launcher\index.js
(which is part of the definition of the function getConnectionCommand
):
var args = ` ${jupyterConsole} --existing ${connectionFile}`;
var args = ` ${jupyterConsole} --existing \"${connectionFile}\"`;
For some reason, the node_modules\term-launcher\
folder does not exist in the online repository, else I would have changed it myself and made a pull request.
I'm running on Windows 10. Hydrogen works for me, and I can execute python code from editor.
However, when I try to launch jupyter console (ctrl+shfit+p then type in the command), it says "Could not find jupyter or ipython".
My python is running on Anaconda. May I know how to resolve this?
Thank you!
Added: my Anaconda was not on system path. I re-installed Anaconda and added it to the system path.
Now the jupyter console started, but while I tried to run a command, it returned:
RuntimeError: Kernel didn't respond to kernel_info_request
Thanks for reading my issue. I will just report this for information, while I'll work with other alternatives.
Atom: 1.33.0 x64
Electron: 2.0.11
OS: Microsoft Windows 10 Education
Thrown From: greyatom-hydrogen package 1.9.0
Uncaught TypeError: this.editor.languageMode.rowRangeForCodeFoldAtBufferRow is not a function
At C:\Users\Fil\.atom\packages\greyatom-hydrogen\lib\code-manager.js:37
TypeError: this.editor.languageMode.rowRangeForCodeFoldAtBufferRow is not a function
at CodeManager.findCodeBlock (/packages/greyatom-hydrogen/lib/code-manager.js:37:48)
at Object.run (/packages/greyatom-hydrogen/lib/main.js:358:40)
at HTMLElement.hydrogenRun (/packages/greyatom-hydrogen/lib/main.js:55:34)
at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.33.0/resources/app/static/<embedded>:11:349858)
at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.33.0/resources/app/static/<embedded>:11:1231210)
at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.33.0/resources/app/static/<embedded>:11:1227344)
at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.33.0/resources/app/static/<embedded>:11:285037)
-0:11.4.0 intentions:highlight (input.hidden-input)
-0:10.4.0 hydrogen:run (input.hidden-input)
greyatom-hydrogen 1.9.0
Hydrogen 2.6.0
hydrogen-launcher 1.2.2
hydrogen-xdbg 0.0.4
intentions 1.1.5
kite 0.123.0
linter 2.2.0
minimap 4.29.9
Sorry if this is trivial. I'm relatively new to Atom, and couldn't find this package when I search for it in settings in Atom. Does it come with Hydrogen already? if not, how should we install it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.