These are chat archives for spyder-ide/public

4th
Dec 2018
Carlos Cordoba
@ccordoba12
Dec 04 2018 01:34
I'm thinking exactly the same! I'd like to have a plugin similar to the Viewer in RStudio
CAM Gerlach
@CAM-Gerlach
Dec 04 2018 04:30
Presumably Python packages (or Spyder plugins?) could use it to display arbitrary visualizations, like what you can do in Rstudio?
Old Guy in the Club
@OldGuyInTheClub
Dec 04 2018 06:18
I'll go out on a limb here not knowing anything about implementation details you are discussing. For me, copying/pasting from Spyder into the Jupyter window was obvious and easy. Could this become a simple highlight cells in Spyder + right-click to a "Run selection in Jupyter" option?
CAM Gerlach
@CAM-Gerlach
Dec 04 2018 06:25

Could this become a simple highlight cells in Spyder + right-click to a "Run selection in Jupyter" option?

If we implement the Viewer we're discussing, I'd imagine that output could be (automatically or on-demand) routed there for display. That would cover the you've cited (that prompted this discussion) of sending code to Jupyter, i.e. interactive visualizations and other output that requires a browser-like rendering environment. Other than there, Spyder is sending code to a IPython interpeter/Jupyter kernel to execute just like Jupyter Notebook; the main difference is just in the output (Web Browser vs. QtConsole). Other than that, if you just want to document your code inline with Markdown, etc., Spyder-Reports is designed for exactly that use case already.

Old Guy in the Club
@OldGuyInTheClub
Dec 04 2018 06:40

Ah, I see. I thought that since Spyder could connect to existing kernels that it would be a simple-ish matter of identifying/connecting to the notebook kernel and output automagically getting piped to it. I tried it for fun and it didn't work so there must be more to it. Running %history in both the linked console and notebook does show the full kernel history either way.

I'll be experimenting with Spyder-Reports in the next few days. I understand per @ccordoba12 that isn't currently maintained due to unfortunate circumstances. Is it stable "enough" (for sufficient values of "enough") or should I hold until it is back in development?

Mudiyanselage Dissanayake
@Dissa0815_gitlab
Dec 04 2018 07:59
please explain 'shc' of this statement from shc import shc_base as shc
please explain 'shc' of this statement "from shc import shcbase as shc"
from shc import shc_base as shc
import glob
from matplotlib import pylab as plt
import numpy as np
what is 'shc' of above explanation
CAM Gerlach
@CAM-Gerlach
Dec 04 2018 08:08
@Dissa0815_gitlab This is a Gitter chat specifically for the Spyder integrated development environment, not basic Python questions. Did you try Googling it?
Mudiyanselage Dissanayake
@Dissa0815_gitlab
Dec 04 2018 08:10
yes I could not find any answer for this
CAM Gerlach
@CAM-Gerlach
Dec 04 2018 08:25
@Dissa0815_gitlab Did you read the docs? As a general rule of advice, if you're new enough to Python that you don't yet know what an import statement is and what its doing, I'd recommend you learn the basics before trying to understand a more complicated tutorial/example code like that looks to me. Again, this is a chat for questions and help with the Spyder IDE, not Python basics. Google, the docs and Stack Overflow (existing questions, not new ones) are your friend for the latter.

I tried it for fun and it didn't work

@OldGuyInTheClub Its great that you gave it a shot! What didn't work about it? Did the connection fail? Are commands not being executed? Is output not getting returned to the QtConsole? If you're just not seeing output show up in the Notebook itself when sending commands from Spyder, I figure that's expected—you're talking to the notebook's kernel, with QtConsole being used as the GUI frontend instead of the notebook. It may be possible to get around that, but a Viewer pane would obviate the need for that entirely.

I understand per @ccordoba12 that isn't currently maintained due to unfortunate circumstances.

Right now its not; I've offered to fund it myself but with everything going on with Spyder 4 it kind of got put on the back burner until that's released. As for whether its stable enough, it really depends on how stable you need it to be for your usage, and I'm honestly not 100% sure where it stands with the current version of Spyder—your best bet is to try it, to be honest.

Old Guy in the Club
@OldGuyInTheClub
Dec 04 2018 08:37

I tried it for fun and it didn't work

@OldGuyInTheClub Its great that you gave it a shot! What didn't work about it? Did the connection fail? ...

The console connected just fine. It was shot in the dark to see if output from Spyder would be echoed in/redirected to the notebook. That didn't happen but again I had no expectations that it would - just an exercise for myself to understand some of the kernel tools. But, if I typed commands in the notebook window, they showed in the history of the console and vice-versa. So the connection is indeed there.

I understand per @ccordoba12 that isn't currently maintained due to unfortunate circumstances.

Right now its not; I've offered to fund it myself but with everything going on with Spyder 4 it kind of got put on the back burner until that's released. As for whether its stable enough, it really depends on how stable you need it to be for your usage, and I'm honestly not 100% sure where it stands with the current version of Spyder—your best bet is to try it, to be honest.

Again, no expectations. If it was non-functional I would wait. But if basic things work, it will be worth it to understand the underlying concepts and structure. I have no pressing requirements.

CAM Gerlach
@CAM-Gerlach
Dec 04 2018 08:38
...
Remember, Shift-Return :)
Old Guy in the Club
@OldGuyInTheClub
Dec 04 2018 08:44
Yep. I come from the now old school of email, bulletin boards, and forums. These newfangled interfaces do have a learning curve!
CAM Gerlach
@CAM-Gerlach
Dec 04 2018 08:45
Hehe, I may be young but I don't actually even have a smartphone. Its a whole other world, like an foreign culture. Those young kids and their Instant-Grams...
Old Guy in the Club
@OldGuyInTheClub
Dec 04 2018 08:50
I have no social media accounts (unless Github and a blog count). While I appreciate the discussions and support here, the Forum construct with threading, searchability, indexing, and conventional use of the return key are more intuitive to me. I'm glad there's no 140 character limitation. Some companies require Twitter for customer support and I just don't understand how anyone can get help within the character limits!
CAM Gerlach
@CAM-Gerlach
Dec 04 2018 08:53

While I appreciate the discussions and support here, the Forum construct with threading, searchability, indexing, and conventional use of the return key are more intuitive to me.

Yes indeed. This chat is mainly intended for quick questions and such, vs. more in-depth issues or discussions are better off on Github or even our Google Group.

Some companies require Twitter for customer support and I just don't understand how anyone can get help within the character limits!

To be fair, Twitter's doubled their character limit to 280 and no longer counts @ s and links, etc.

Old Guy in the Club
@OldGuyInTheClub
Dec 04 2018 08:55
Ahhh. I didn't even think to check for a Google group. I see your point regarding quick answers.