Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
153 views

Unable to Connect Remote Spark Session with YARN mode on Kubeflow

The main problem is that we are unable to run spark in client mode. Whenever we try to connect to spark on YARN mode from kubeflow notebook we have the following error: `Py4JJavaError: An error ...
Kenan Arslanbay's user avatar
0 votes
1 answer
2k views

How to resolve interactive session error in tensorflow (version 2.0.0a), python version 3.6.8, anaconda version 5.3.1?

I run the following code snippet from __future__ import print_function import tensorflow as tf import numpy as np which returns the following error `` AttributeError Traceback (most recent call ...
sarkar's user avatar
  • 11
8 votes
1 answer
15k views

TensorFlow: generating a random constant

In ipython I imported tensorflow as tf and numpy as np and created an TensorFlow InteractiveSession. When I am running or initializing some normal distribution with numpy input, everything runs fine: ...
daniel451's user avatar
  • 10.9k
3 votes
2 answers
2k views

Get code entered so far in Python interpreter session [duplicate]

Is there a fast, convenient way to get all the code typed into the python interpreter so far? E.g., if I type this into the interpreter: Steven$ python Python 2.7.5 (default, Mar 9 2014, 22:15:05) [...
Steven's user avatar
  • 2,558
16 votes
1 answer
3k views

Is there a way to automatically suppress Matlab from printing big matrices in command window?

Is there an option in matlab or a plugin/app or a trick such that if you are in an interactive command session, every time it would print out a matrix way too big for a human to look through, it ...
BW0's user avatar
  • 767
4 votes
1 answer
8k views

Get active sessions with wmi (Win32_LogonSession returns also inactive/old sessions)

Is there a way to show only active sessions with wmi? The problem is that Win32_LogonSession shows also inactive/disconnected sessions. ManagementScope scope = new ManagementScope(ManagementPath....
domueni's user avatar
  • 304
473 votes
20 answers
236k views

How to save a Python interactive session?

I find myself frequently using Python's interpreter to work with databases, files, etc -- basically a lot of manual formatting of semi-structured data. I don't properly save and clean up the useful ...
unmounted's user avatar
  • 34.3k