question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jupyterlab - just prints object

See original GitHub issue

Hi,

despite all my efforts altair won’t show plots on on my new laptop - just prints object, instead

so for this example:

import altair as alt

# Uncomment/run this line to enable Altair in JupyterLab/nteract:
alt.enable_mime_rendering()

# load data as a pandas DataFrame
cars = alt.load_dataset('cars')

alt.Chart(cars).mark_point().encode(
    x='Horsepower',
    y='Miles_per_Gallon',
    color='Origin',
)

it returns:

<traitlets.traitlets.Chart at 0x1029832b0>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ellisonbgcommented, Feb 17, 2018

The nbextension stuff won’t interfere with the JupyterLab side of things. I am digging out of email, but will try to come up with some test code you can run to help us debug this over the weekend.

On Fri, Feb 16, 2018 at 8:21 AM, Philipp Kats notifications@github.com wrote:

shall I, then, remove nbextension stuff and/or somehow disable them?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/altair-viz/altair/issues/449#issuecomment-366264557, or mute the thread https://github.com/notifications/unsubscribe-auth/AABr0NmLhikEzgVVZJC_kNa-Ir_fz90Hks5tVZzngaJpZM4SH1ym .

– Brian E. Granger Associate Professor of Physics and Data Science Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger@calpoly.edu and ellisonbg@gmail.com

0reactions
JoeManyckscommented, Jul 2, 2019

Sorry, I’m not going to be able to help you – I haven’t used a Windows machine for over a decade, and I’m not familiar with how windows handles executable paths.

Thanks though, will try to figure it out somehow

Read more comments on GitHub >

github_iconTop Results From Across the Web

Printing | @jupyterlab
One way of printing is to use the printWidget function, which creates a hidden iframe and copies the DOM nodes from your widget...
Read more >
How to display full output in Jupyter, not only last result?
I want Jupyter to print all the interactive output without ... No more retyping the same item multiple times just to get it...
Read more >
Plotting and Programming in Python - Our Lessons
Objectives. Launch the JupyterLab server. Create a new Python script. Create a Jupyter notebook. Shutdown the JupyterLab server.
Read more >
Using with Jupyter — Bokeh 2.4.3 Documentation
You can use this handle object with the push_notebook() function to update the plot with any recent changes to plots properties, data source...
Read more >
Is there a way to save the output of a cell? - JupyterLab
I really just want a snapshot of the output. ... AxesSubplot object at 0x7f4142d81a00> is not of type 'object', 'array', 'boolean', ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found