RoboStack / jupyter-ros

Jupyter widget helpers for ROS, the Robot Operating System
https://jupyter-ros.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
589 stars 115 forks source link

Unable to import ros3d from jupyros #153

Open ChengTszYin opened 1 year ago

ChengTszYin commented 1 year ago

I was runing from jupyros import ros3d and get error "ImportError: cannot import name 'ros3d' from 'jupyros'"


ImportError Traceback (most recent call last) Cell In[4], line 1 ----> 1 from jupyros import ros3d 2 import rospy

ImportError: cannot import name 'ros3d' from 'jupyros' (/Users/chengtszyin/Desktop/new_ws/jupyter-ros/jupyros/init.py)

Please help. THANK YOU

IsabelParedes commented 1 year ago

Hi @ChengTszYin

Could you try from jupyros.ros1 import ros3d ?

If that doesn't work, could you tell me which version of jupyros you have installed? Thanks!

ChengTszYin commented 1 year ago
螢幕截圖 2023-03-22 上午2 51 19

It seems that the from jupyros.ros1 import ros3d works but I do not see any 3d mapping shown. Do I miss other package? thank you

IsabelParedes commented 1 year ago

Hi @ChengTszYin,

Unfortunately, sidecar is not compatible with Jupyter Notebook. I would suggest not using sidecar or better yet, switch to JupyterLab so that sidecar can work. Let me know if that helps.

ChengTszYin commented 1 year ago

Thanks I will give a try

SailorBrandon commented 11 months ago

I am also encountering an issue where the 3D viewer is not displaying. Below is a screenshot showing the code and outputs:
image

Here are the versions of the relevant packages I am using:

jupyros == 0.6.1 
notebook == 6.4.13
jupyterlab == 4.0.9
ipywidgets == 7.8.1
notebook == 6.4.13