Giter Club home page Giter Club logo

hydrogen-launcher's People

Contributors

lgeiger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hydrogen-launcher's Issues

I don't know how to setting

How to launch jupyter consoles connected to Hydrogen inside PlatformIO IDE Terminal?
Can you show me of your setting?

remote notebook support?

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?

Uncaught TypeError: Cannot read property 'getPath' of undefined

Steps to reproduce:

  1. ctrl+shift+p
  2. Select Hydrogen Launcher

Atom: 1.43.0 x64
Electron: 4.2.7
OS: Ubuntu 18.04.4
Thrown From: hydrogen-launcher package 1.2.2

Stack Trace

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)

Commands

  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)

Non-Core Packages

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 

Launch Jupyter Console gives error in directory with space

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.

Launch error

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?

qtconsole launch doesn't work?

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..

Launching a console in Windows with bash results in unescaped backslashes.

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.

"Could not find jupyter or ipython."

...when trying to launch a jupyter console (with or without PlatformIO terminal). Hydrogen runs fine. This occurs for any python script. Any thoughts?

Launch Jupyter console / platformio ide in same kernel

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?

[Feature request] platformio-ide-terminal integration

It would be great if the launcher would integrate with the platformio-ide-terminal (terminal-plus is broken at the moment). Right now I start a terminal and connect manually, but it would be neat to have this functionality automated. Image below shows my UI with this feature.

alt text

Failed to load the hydrogen-launcher package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.47.0 x64
Electron: 5.0.13
OS: Microsoft Windows 10 Pro
Thrown From: hydrogen-launcher package 1.2.2

Stack Trace

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)

Commands

Non-Core Packages

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 

Hydrogen v1.0.0+ has to be running?

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?

"Run all" for remote kernels

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).

hydrogen-laucher pops up and disappers at startup

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.

Action required: Greenkeeper could not be activated 🚨

🚨 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.

Launch Terminal fails if directory contains a space

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 👍 )

How to redirect output of hydrogen to ipython consol

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?

jupyter notebooks?

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?

Jupyter console timeout

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.

Here is a screenshot of the full error message.
image

Keeps saying x is not defined.

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.

PlatformIO Terminal is not maintained anymore

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.

Open hydrogen-launcher at the start with atom?

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.

Object.dirname is deprecated.

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)

Crash on Windows when username has a space

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):

  • Old: var args = ` ${jupyterConsole} --existing ${connectionFile}`;
  • New: 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.

launch jupyter console resulted in "Could not find jupyter or ipython"

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.

Hydrogen Run fails

Atom: 1.33.0 x64
Electron: 2.0.11
OS: Microsoft Windows 10 Education
Thrown From: greyatom-hydrogen package 1.9.0

Stack Trace

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)

Commands

     -0:11.4.0 intentions:highlight (input.hidden-input)
     -0:10.4.0 hydrogen:run (input.hidden-input)

Non-Core Packages

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 

How exactly does one install hydrogen-launcher?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.