{"action":"created","issue":{"url":"https://api.github.com/repos/CadQuery/cadquery/issues/27","repository_url":"https://api.github.com/repos/CadQuery/cadquery","labels_url":"https://api.github.com/repos/CadQuery/cadquery/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/CadQuery/cadquery/issues/27/comments","events_url":"https://api.github.com/repos/CadQuery/cadquery/issues/27/events","html_url":"https://github.com/CadQuery/cadquery/issues/27","id":388353987,"node_id":"MDU6SXNzdWUzODgzNTM5ODc=","number":27,"title":"CQGI: displaying cqparts components","user":{"login":"dcowden","id":1297923,"node_id":"MDQ6VXNlcjEyOTc5MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1297923?v=4","gravatar_id":"","url":"https://api.github.com/users/dcowden","html_url":"https://github.com/dcowden","followers_url":"https://api.github.com/users/dcowden/followers","following_url":"https://api.github.com/users/dcowden/following{/other_user}","gists_url":"https://api.github.com/users/dcowden/gists{/gist_id}","starred_url":"https://api.github.com/users/dcowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcowden/subscriptions","organizations_url":"https://api.github.com/users/dcowden/orgs","repos_url":"https://api.github.com/users/dcowden/repos","events_url":"https://api.github.com/users/dcowden/events{/privacy}","received_events_url":"https://api.github.com/users/dcowden/received_events","type":"User","site_admin":false},"labels":[{"id":1151963773,"node_id":"MDU6TGFiZWwxMTUxOTYzNzcz","url":"https://api.github.com/repos/CadQuery/cadquery/labels/CQ2","name":"CQ2","color":"c2e0c6","default":false},{"id":1107673639,"node_id":"MDU6TGFiZWwxMTA3NjczNjM5","url":"https://api.github.com/repos/CadQuery/cadquery/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-12-06T19:06:07Z","updated_at":"2018-12-06T19:06:27Z","closed_at":null,"author_association":"MEMBER","body":"<a href=\"https://github.com/fragmuffin\"><img src=\"https://avatars0.githubusercontent.com/u/2626190?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [fragmuffin](https://github.com/fragmuffin)**\n_Saturday May 26, 2018 at 13:28 GMT_\n_Originally opened as https://github.com/dcowden/cadquery/issues/273_\n\n----\n\ndisplaying objects created in `cqparts` using `cqparts.cqgi` at the moment involves extracting the `cadquery.Workplane` instance from the `Component`, and passing it to `show_object`.\r\n\r\n```python\r\nfrom cqparts_misc.basic.primatives import Cube\r\ncube = Cube(size=10)\r\nshow_object(cube.local_obj)\r\n```\r\n\r\n**Problem**\r\nDisplaying a `cqparts.Component` with editable parameters currently requires the workaround described in https://github.com/fragmuffin/cqparts/issues/95#issuecomment-391936013\r\n\r\n```python\r\nfrom cqparts_misc.basic.primatives import Cube\r\ng_size = 10\r\ncube = Cube(size=g_size)\r\nshow_object(cube.local_obj)\r\n```\r\n\r\n**Solution?**\r\nThe display of a `cqparts` component would be much more intuitive with `cadquery.cqgi` if the parameters to be modified are picked up from the `cqparts.Component` instance itself.\n"},"comment":{"url":"https://api.github.com/repos/CadQuery/cadquery/issues/comments/444990675","html_url":"https://github.com/CadQuery/cadquery/issues/27#issuecomment-444990675","issue_url":"https://api.github.com/repos/CadQuery/cadquery/issues/27","id":444990675,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDk5MDY3NQ==","user":{"login":"dcowden","id":1297923,"node_id":"MDQ6VXNlcjEyOTc5MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1297923?v=4","gravatar_id":"","url":"https://api.github.com/users/dcowden","html_url":"https://github.com/dcowden","followers_url":"https://api.github.com/users/dcowden/followers","following_url":"https://api.github.com/users/dcowden/following{/other_user}","gists_url":"https://api.github.com/users/dcowden/gists{/gist_id}","starred_url":"https://api.github.com/users/dcowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcowden/subscriptions","organizations_url":"https://api.github.com/users/dcowden/orgs","repos_url":"https://api.github.com/users/dcowden/repos","events_url":"https://api.github.com/users/dcowden/events{/privacy}","received_events_url":"https://api.github.com/users/dcowden/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T19:06:27Z","updated_at":"2018-12-06T19:06:27Z","author_association":"MEMBER","body":"<a href=\"https://github.com/zwn\"><img src=\"https://avatars3.githubusercontent.com/u/1130051?v=4\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [zwn](https://github.com/zwn)**\n_Thursday Jun 14, 2018 at 07:26 GMT_\n\n----\n\nWhile reloading modules in python is possible it may not always yield the same result as executing from scratch (python has very complicated/powerful runtime). More reliable method might be using something like [multiprocessing](https://docs.python.org/3.5/library/multiprocessing.html) and actually execute the script in a throw-away python process and communicating the results back to the parent process for display.\r\n \n"}}
{"actor":{"display_login":"dcowden"}}